-1

I have embedded a ScrollView within a UIViewController which contains multiple text fields that will act as a simple form to collect user data (Name, email, etc.). The problem is that when a text field is selected and the keyboard slides up, the text field is obscured by the keyboard. How can I slide the text fields back into view so that the user can clearly see what they are using as input?

Dharman
  • 30,962
  • 25
  • 85
  • 135
Tim Stullich
  • 251
  • 6
  • 19
  • 1
    chekc this tutorial :-http://cocoawithlove.com/2008/10/sliding-uitextfields-around-to-avoid.html – Leena Jul 27 '12 at 06:39

1 Answers1

0

You have to check for uikeyboard visibility ( see this post How can I programmatically check whether a keyboard is present in iOS app? ) and then call scrollRectToVisible for the selected textField. If you google about uikeyboard and scrollRectToVisible you will find many tutorial about this problem...

Dharman
  • 30,962
  • 25
  • 85
  • 135
Esses77
  • 86
  • 2
  • 7