How not to dismiss keyboard in iPad even if the user presses the dismiss button on the right bottom?
On one of my view controllers on iPad, I don't want the user to dismiss the keyboard even if the user presses the dismiss button on the right bottom of the keyboard. I want this because there's nothing else on the view that he 开发者_开发百科can do without the keyboard and the button below the textfields, and the view looks empty without the keyboard.
I've tried listening to keyboardWillHide notification and making one of my text fields the first responder on the callback method but it didn't work. I've tried returning NO from textFieldShouldReturn or textFieldShouldEndEditing methods but they don't produce the behavior I want, either.
Below is the screenshot of a scratch view. Do you have any other ideas?
Have you tried to return NO in UITextField delegate's - (BOOL)textFieldShouldEndEditing:(UITextField *)textField ?
精彩评论