Adjusting interface when keyboard appears for UITextField or UITextView

cocoa-touch

Solution

You'll want to register your viewController for `UIKeyboardDidShowNotification` and `UIKeyboardWillHideNotification` events. When you get these, you should adjust the bounds of your table; the keyboard is 170 pixels height, so just shrink or grow your table bounds appropriately, and it should properly adjust to the keyboard.

Problem

I have a table with each cell containing a label and a text field. Problem is that when i go to edit the last row, keyboard hides the lower portion of the table, and i can't see what is being typed. How can i move my interface above the keyboard so i see what is being typed? Thanks, Mustafa

Original source

Related problems