Can Somebody tell me how to dismiss keyboard on click of UITextField which i created in interface builder because i want to select data from the UIPickerView to fill the UITextField instead of typing the text from the keyboard
Quote:
Originally Posted by incorrect.user
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
|