views:

34

answers:

2

When the keyboard slides up in my iPhone application, it obscures a large portion of the screen. How do I adjust my views so that they are not hidden under the keyboard?

A: 

I usually move up my whole UIView so you can see both keyboard and textfield

toupper
how to move whole view
Nauman.Khattak
myView.frame = CGRectMake(0,-100,320,480)To make it smoother you can try to make it through an animation.
toupper
+1  A: 

You'll find nice code for that here. Just go to the section called : Moving Content That Is Located Under the Keyboard

You can use and adapt what the documentation said to move your view when the keyboard is visible.

Hope this helps !

Ermiar