1

I've got an UIScrollView with an UIImageView at the top and an UITableView.

inside every cell of the UITableView I've placed a UITextField

I would like to know how I can automatically scroll to the UITextField selected so that it doesn't go under the keyboard

I've already looked at this Get UITableView to scroll to the selected UITextField and Avoid Being Hidden by Keyboard but it doesn't works very well for my situation..

could you help me?

Thank You!

Community
  • 1
  • 1
Gianluca
  • 2,379
  • 3
  • 25
  • 41

1 Answers1

1

Check out Matt Gallagher's fantastic Sliding UITextFields around to avoid the keyboard. It ought to be just what you need. You can modify it to only scroll a specific element, or just leave it as is to scroll the whole superview.

Sam
  • 1,504
  • 2
  • 13
  • 19
  • I still have a little problem... as I said before I've got an UIscrollview with an image and a table inside it... this is what it happens with that code..http://imageshack.us/photo/my-images/263/schermata20110607a19485.png/ could you help me? thank you – Gianluca Jun 07 '11 at 17:50