Return to Snippet

Revision: 41019
at February 10, 2011 22:53 by BenClayton


Initial Code
#pragma mark -
#pragma mark UITextFieldDelegate methods
- (BOOL)textFieldShouldReturn:(UITextField *)theTextField {
	[theTextField resignFirstResponder];
	return YES;
}

Initial URL

                                

Initial Description
make your class implement the <UITextFieldDelegate>
on your UITextField object, do myTextField.delegate = self.

Initial Title
iPhone: Close keyboard when done button pressed

Initial Tags

                                

Initial Language
Objective C