I had a similar problem, and I fixed it using the information provided here from the author of the library.
Key statement:
library logic - find the nearest scrollView from textField. and in your case it is a tableView, so the library selects a tableView to scroll through.
So the solution I used was to disable the scroll property of the UITableView when editing a text field / view (use delegate methods), and then turn it back on after editing was completed. This ensures that the library does not detect the UITableView as scrollable, and therefore it ignores it, and then instead moves your container view - as you expected. After the view has moved up as you wish, you can re-enable scrolling through UIKeyboardWillShowNotification.
So, for example, for a UITextField:
-(void) textFieldDidBeginEditing:(UITextField *)textField { [self.tableView setScrollEnabled:NO]; } - (void) textFieldDidEndEditing:(UITextField *)textField { [self.tableView setScrollEnabled:YES]; }
However, in order to allow scrolling after the view has moved up, I registered to notify the keyboard, and then allowed scrolling after the keyboard is up:
-(void) keyboardWillShow { [self.tableView setScrollEnabled:YES]; } - (void)viewDidLoad { [super viewDidLoad]; [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(keyboardWillShow) name:UIKeyboardWillShowNotification object:nil]; }
SMSidat
source share