views:

109

answers:

2

Hello,

I have a number of text fields on a view controller, when the keyboard appears, it covers some of the text field that are towards the middle of the view controller. Is there a way to move the ViewController up when the keyboard appears.

Stephen

A: 

You'll want to register with NSNotificationCenter to receive the UIKeyboardWillShowNotification, which can tell you the position of the keyboard, which you can use to resize your view.

jtbandes
+1  A: 

Duplicate of this question. You can look at good answers there. There also have a sample code for you already:)

vodkhang