Keith Walker
Keith Walker

Reputation: 1

Resizing ViewController to accommodate the keyboard

This is for XCode, creating an app for iPhone.

Ok, so I am creating a sign up screen using a UIViewController. It has about 6 textfields on it so they accommodate most of the page. problem is when I wish to type data in to them using the keyboard, the keyboard blocks the view of the lower textfields.

Is there any way I can resize the UIViewController for when the keyboard appears and then returns to normal once the keyboard is dismissed so that I can see the textfields?

Upvotes: 0

Views: 812

Answers (1)

Javito_009
Javito_009

Reputation: 115

Follow this example given in the documentation (go to "Moving Content That Is Located Under the Keyboard" section). It's works really great for me, hope it helps.

Upvotes: 1

Related Questions