Gannicus Gannicus - 12 days ago 7
iOS Question

Move up keyboard when editing UITextField on iOS9

For my keyboards to move up to uncover

UITextField
in my iOS app, I used to implement this answer: http://stackoverflow.com/a/6908258/3855618 on iOS7 and 8 and it has worked perfectly for now. However on iOS 9.1, it doesn't work anymore.

To be more accurate, even if the background view does move up, the
UITextField
doesn't.

Any idea of what has changed so much since iOS9 and iOS 9.1?

Answer

I would suggest that you should use this library. https://github.com/hackiftekhar/IQKeyboardManager

This library will automatically adjust your textfields w/o adding any additional codes.