I have a modal View Controller, presented as Form Sheet on the iPad. When I send [textField resignFirstResponder], the Keyboard remains on the screen.
In the View Controller:
- (BOOL)textFieldShouldEndEditing:(UITextField *)textField
{
return YES;
}
- (BOOL)textFieldShouldReturn:(UITextField *)textField
{
[textField resignFirstResponder];
return YES;
}
In the Navigation Controller:
- (BOOL)disablesAutomaticKeyboardDismissal
{
return NO;
}
All this worked using iOS 6, but not with iOS 7.