Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

bobisa

macrumors newbie
Original poster
i have made a app that ask the user to input a reference number. when he has finish to type, how the keyboard can go away ?

i want to be able to show what is under the keyboard
 
Make sure the "Done" button for the keyboard resigns first responder. You can do that with the textFieldShouldReturn method.

You can also modify the keyboard that gets displayed for your text field if you want it to display a "Done" button.

Look up the UITextField "keyboardType" property in the documentation.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.