UITableView In A Container - Keyboard!

Hi -


I've run into an issue that I'm sure others have handled before(?)


I use IQKeyboardManager which works great - but it doesn't work with UITableViewControllers. No problem as UITableViewControllers seem to handle the keyboard side of things...


However, I have two instances in my app whereby I have a UITableView on an embedded container which is on a UIViewController. Now it seems the TableView isn't dealing with the keyboard which means I have to.


Wondering if anyone wouldn't mind sharing some tips on how to approach handling this situation.


Many Thanks
Pat

Answered by PD9999 in 420685022

Turns out...


My TableViewController was Overriding the ViewWillAppear event, I wasn't calling the super.ViewWillAppear from within the function! This fixed things for me - silly thing but took me AGES to find it.

Accepted Answer

Turns out...


My TableViewController was Overriding the ViewWillAppear event, I wasn't calling the super.ViewWillAppear from within the function! This fixed things for me - silly thing but took me AGES to find it.

Thanks for feedback and great to have found it.


Just for next time: it is worth posting code (here the TableViewController).

UITableView In A Container - Keyboard!
 
 
Q