Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial
Alex Taylor
2,758 PointsHide keyboard in iOS simulator
Hi there,
I am working through the iOS courses, and I am creating a new app testing what I have learnt.
I have added a number of text fields to my app, however when I start entering data into these fields in the simulator, the keyboard pops up, covering some of the remaining fields. I can't seem to get the keyboard to disappear, meaning I can't complete the input and save the data in the backend.
Can anyone help me? I would really appreciate it!
Thanks, Alex
2 Answers
Stone Preston
42,016 Pointsyou can use TPKKeyboardAvoiding to fix this issue. or you can use delegate methods to dismiss the keyboard when a return key is pressed. the delegate method way is covered here and the TPKKeyboardAvoiding scrollview technique is covered here
Alex Taylor
2,758 PointsAh thanks so much! I hadn't made it to those lessons yet.