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