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 925 forks source link

Only works for one UITextField #216

Closed kakubei closed 8 years ago

kakubei commented 8 years ago

First of all, thanks for this, a great time-saver. However, I have an issue where the scroll only works for the first UITextField in my View Controller, not for the second one.

Both TextFields have the delegate set as their View Controller. There is nothing different in these text fields, they both contain IBOutlets.

Any ideas? Thanks.

michaeltyson commented 8 years ago

You're most welcome! Hmm. Maybe share a little sample app that shows this?

kakubei commented 8 years ago

Please disregard. It turned out to be my fault, I needed to set at least one item in the scroll view with a bottom constraint to it in order for this to work.