I placed a UITextField into a UIAlertView and moved it up so the keyboard wouldn\'t cover it up with the following code:
[dialog setDelegate:self];
[dialog s
This is actually only 1 more line to the regular UIAlertView code. Hope this helps!
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"test" message:@"This is a alert with a textfield" delegate:self cancelButtonTitle:@"YAY" otherButtonTitles:nil];
alert.alertViewStyle = UIAlertViewStylePlainTextInput;
[alert show];
[alert release];
only runs on iOS 5 or later