Clicking in a textfield makes the keyboard appear. How do I hide it when the user presses the return key?
In viewDidLoad declare:
viewDidLoad
[yourTextField setDelegate:self];
Then, include the override of the delegate method:
-(BOOL)textFieldShouldReturn:(UITextField *)textField { [textField resignFirstResponder]; return YES; }