I have arrived at a situation where I can make the onscreen keyboard “stick” and even pressing the Close button on the keyboard has no effect.
The keyboard pops up when a UITextField is touched. Normal. But if a different UITextField is touched while the keyboard is up, and that textfield issues a UIAlertView (to notify user that editing is not available for that particular record), this alert view seems to somehow “lock” the keyboard. I tried to resignFirstResponder before the alert view is created or shown, but this has no effect. I’m using - (void)textFieldDidBeginEditing:(UITextField *)textField to determine whether editing is allowed or not, and this is method contains the code to show the alert view and resign first responder.
Has anyone had this experience or have a suggestion?
Use
- (BOOL)textFieldShouldBeginEditing:(UITextField *)textFieldinstead of the method mentioned in the question. Tested and resolves the issue.