michaeltyson / TPKeyboardAvoiding

A drop-in universal solution for moving text fields out of the way of the keyboard in iOS
http://atastypixel.com/blog/a-drop-in-universal-solution-for-moving-text-fields-out-of-the-way-of-the-keyboard/
zlib License
5.81k stars 926 forks source link

TPKeyboardAvoiding doesnt work if its viewcontroller is added as childviewcontroller #252

Open Mehul18292 opened 7 years ago

Mehul18292 commented 7 years ago

I have 2 viewcontrollers, let say viewController1 and viewController2. Now i have uitableview inside viewController2 having textfields in cells. I changed type of uitableview to TPKeyboardAvoidingTableView.

Now if i present viewControleller2 directly, then everything working fine. But when i add viewController2 into viewController1 as childViewController, It stops working.

How can i handle this situation. Any suggestions please

freemansion commented 7 years ago

Not sure about TPKeyboardAvoidingTableView, but I have child view controller with TPKeyboardAvoidingCollectionView and it works fine.