1 | UIAlertView *myAlertView = [[UIAlertView alloc] initWithTitle:@ "Your title here!" message:@ "this gets covered" delegate:self cancelButtonTitle:@ "Cancel" otherButtonTitles:@ "OK" , nil]; |
2 | UITextField *myTextField = [[UITextField alloc] initWithFrame:CGRectMake(12.0, 45.0, 260.0, 25.0)]; |
3 | [myTextField setBackgroundColor:[UIColor whiteColor]]; |
4 | [myAlertView addSubview:testTextField]; |
5 | [myAlertView show]; |
6 | [myAlertView release]; |
0 Comments