kushal maniyar kushal maniyar - 3 months ago 60
Swift Question

IQKeyboardManager not working when UITableView embedded in a container view

Currently, I am working with a container view with an embedded

UITableView
and am using the IQKeyboardManager CocoaPod to scroll the view so my
UITextFields
and
UITextViews
are not covered by the keyboard:

https://github.com/hackiftekhar/IQKeyboardManager.

I can successfully
import IQkeyboardManager
and make it work in other views but it's not working when the
UITableView
is embedded in a container view.

Answer
    -(void)viewWillAppear:(BOOL)animated {
    [super viewWillAppear:YES]; // This line is needed for the 'auto slide up'
   // Do other stuff
}

Simple solution , No need to create observer.

Comments