Part 3: Hide that keyboard – A .net developer learns objective-c for iPhone iPad

Quick one.

If you want to hide a keyboard once the Done button is clicked create an action, wire it up and call [sender resignFirstResponder];

eg:

- (IBAction)textFieldDoneEditing: (id)sender {
   [sender resignFirstResponder];
}

 

 

over and out.

Leave a Reply