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

ausername

macrumors newbie
Original poster
Feb 28, 2009
25
0
Hello, I am new to the the UIKit and objective-c in general. The problem I am having is that when I click on a test field, the keyboard opens, respectively. But when I click the "Done" button, the keyboard does not close. How can I close the keyboard?
 

North Bronson

macrumors 6502
Oct 31, 2007
395
1
San José
You want to use the TextField's delegate.

Do you understand how delegation works? Delegation is used throughout UIKit (and Cocoa), so it would be very useful to understand how it all works.
 

ausername

macrumors newbie
Original poster
Feb 28, 2009
25
0
Nope

Not really. Is there a way to do it without one? or could you show me how to do it with one?
 

fenrus110

macrumors regular
Mar 24, 2008
142
0

ausername

macrumors newbie
Original poster
Feb 28, 2009
25
0
Thanks

Well, that is true, didn't know they had any info on that. Well. Thanks for the link. :)
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.