Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #import "SomeViewController.h"
- @implementation SomeViewController
- @synthesize textField;
- - (void)viewDidLoad {
- [super viewDidLoad];
- [self.textField setDelegate:self]; // important
- }
- // deactivate the keyboard when done
- - (BOOL)textFieldShouldReturn:(UITextField *)theTextField {
- [theTextField resignFirstResponder];
- return YES;
- }
- @end
Add Comment
Please, Sign In to add comment