Scroll up TextField when keyboard shows
Put the UITextField in a UIScrollView
Register keyboard notifications for keyboard show/hide event in viewDidLoad
Adjust scroll view's content inset when keyboard shows
Reset the scroll view's content inset when keyboard hides
1. Put the UITextField in a UIScrollView
2. Register keyboard notifications for keyboard show/hide event in viewDidLoad
3. Adjust scroll view's content inset when keyboard shows
4. Reset the scroll view's content inset when keyboard hides
Reference
Last updated
Was this helpful?