Welcome to the Treehouse Community
Looking to learn something new?
Setting a viewController to automatically push up when entering in text to a text field?
Hey guys. Trying to get a viewController to automatically scroll up when typing text into a text field. Anybody know what method I need to call for that?
Patrick Cooney12,216 Points
Keep going with the tutorial. Once you're done, move on to "Implementing Designs for The iPhone". Eventually you'll get to TPKeyboardAvoiding...
Sheesh. I must've been in a rush typing this up or really frustrated. I've created a viewController for my Ribbit app in the Self-destructing Application module. When expanding on the Sign-up screen to include more text fields in order to get more info from the user, when I test the app and try typing in one of the text fields, the keyboard/keypad pops up and blocks the "Sign Up" button down below. Is there a method in the UIViewController class that I could call to get it to scroll up once the keyboard or keypad is enabled? I tried using a UIScrollView and placing it on top of the View, but it's not helping. I'm assuming if there's something that needs to be done to make this work, it'll include the UIScrollView, but if anyone else has any tricks, please let me know!