Need help: I can't find out how to make the textfield keyboard close.

Discussion in 'iOS Programming' started by ausername, Mar 10, 2009.

  1. ausername macrumors newbie

    Joined:
    Feb 28, 2009
    #1
    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?
     
  2. North Bronson macrumors 6502

    Joined:
    Oct 31, 2007
    Location:
    San José
    #2
    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.
     
  3. ausername thread starter macrumors newbie

    Joined:
    Feb 28, 2009
    #3
    Nope

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

    Joined:
    Mar 24, 2008
    #4
    Just because you are new, doesn't mean you are excused from reading the documentation.

    http://developer.apple.com/iphone/l....html#//apple_ref/doc/uid/TP40007072-CH20-SW3
     
  5. ausername thread starter macrumors newbie

    Joined:
    Feb 28, 2009
    #5
    Thanks

    Well, that is true, didn't know they had any info on that. Well. Thanks for the link. :)
     

Share This Page