Instead of trying to go beyond the field to cancel the first responder, just resize the table view to -setFrame when the keyboard is displayed so that it is in the visible area above the keyboard. Then you can scroll the view to other cells. You can receive notifications that the keyboard is visible by registering for an event as follows:
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(keyboardWillShow:) name:UIKeyboardWillShowNotification object:nil];
Then we implement keyboardWillShow:
- (void)keyboardWillShow:(NSNotification*)notification; { [tableView setFrame:CGRectMake(0.0f, 0.0f, 320.0f, 200.0f)]; }
Best wishes.
source share