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

iphonejudy

macrumors 6502
Original poster
Sep 12, 2008
301
1
Hi,


I cant find any close or doe button in the keypad of my simulator.So how can i close my keypad after i entered the text.
 

dipaliP

macrumors newbie
Oct 6, 2008
28
0
Is there any return button on your keypad?
If it is, then first you have to set delegate of textfield then in textFielShouldReturn delegate method you can use
[yourTextField resignFirstResponder];
so whenever you will click on return button your keyboard will closed.
 

fenrus110

macrumors regular
Mar 24, 2008
142
0
if she is using a numberpad keyboard layout, there is no return button (stupid,yes). you would need to add another button somewhere on the screen and that would call resign. similar to how you would use UITextView
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.