I have created a signup form with a UIAlertController and used the method addTextFieldWithConfigurationHandler to add a text field. But there is a litt
UIAlertController
addTextFieldWithConfigurationHandler
- (void)alertView:(UIAlertView *)alertView clickedButtonAtIndex:(NSInteger)buttonIndex { if (buttonIndex==1) { [[alertView textFieldAtIndex:0] resignFirstResponder]; } else { [[alertView textFieldAtIndex:0] resignFirstResponder]; } }
Use your button index (Ok or Cancel button index)