For some reason, in my app, the dismiss keybaord button on the lower right hand corner never works. I am able to use resignFirstResponder on the UITextField correctly, but if the user tries to us that button, nothing happens. any ideas?
- (BOOL)textFieldShouldEndEditing:(UITextField *)textField{
NSLog(@"shouldend");
return YES;
}
- (BOOL) textFieldShouldBeginEditing:(UITextField *)textField {
NSLog(@"should begin");
return YES;
}
Additional Info: This is a problem for the entire app. The button never works in any textField in my app.
You probably need to implement the
UITextFieldDelegatemethod– textFieldShouldEndEditing::To test what’s going on, you can also put in simple
NSLogs in– textFieldDidBeginEditing:and– textFieldDidEndEditing:. This will tell you whether to gesture is being received or not.