To hide a keyboard u need just to setup a callback (i.e. IBAction) for the event "Did End On Exit" of UITextField in the InterfaceBuilder. So make ur UITextField an IBOutlet and put an empty IBAction as a callback for "Did End On Exit". That's all.
Like this:
//header
@interface MyView : UIView
{
IBOutlet UITextField *name;
}
- (IBAction)doneButtonOnKeyboardPressed: (id)sender;
//m-file
@implementation MyView
- (IBAction)doneButtonOnKeyboardPressed: (id)sender
{}
@end
|