iPhone Programming - UITextFields in UIAlertViews HD

16.02.2011
A Tutorial teaching you how to put a UITextField into a UIAlertView and make it edit a label. Main Code Used: [testAlert addTextFieldWithValue:@"" label:@"Enter Response Here."]; alertTextField = [testAlert textFieldAtIndex:0]; alertTextField.keyboardType = UIKeyboardTypeAlphabet; alertTextField.clearsOnBeginEditing = YES; alertTextField.clearButtonMode = UITextFieldViewModeWhileEditing; alertTextField.keyboardAppearance = UIKeyboardAppearanceAlert; - (void)alertView:(UIAlertView *)alertView clickedButtonAtIndex:(NSInteger)buttonIndex { NSString *buttonTitle = [alertView buttonTitleAtIndex:buttonIndex]; if ([buttonTitle isEqualToString:@"Done"]) { alertLabel.text = alertTextField.text; } } Previous Video: http://www.youtube.com/watch?v=j136Rt-RTmg First Video: http://www.youtube.com/watch?v=QOrXY84qc5k Link: http://developer.apple.com/devcenter/ios/index.action Website: http://failcake.webs.com/ Twitter: http://twitter.com/failcakeapps Channel: http://youtube.com/milmersxcode

Похожие видео

Показать еще