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

iphonedevelop18

macrumors member
Original poster
Feb 26, 2009
50
0
Say I have a text field and I open the keyboard up by clicking on it, how then do I close the keyboard as there are buttons underneath that need to be pushed.
 

yayaba

macrumors 6502
Apr 24, 2007
297
0
San Francisco Bay Area
You need to assign the UITextField's delegate to whatever is the parent of the UITextField. Then use the delegate function that corresponds to whether or not to use the Return key and in that function return YES and resign the first responder.

I'm not 100% sure of the concept of first responders though, I just know it needs to be done...
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.