Clicking in a textfield makes the keyboard appear. How do I hide it when the user presses the return key?
[textField resignFirstResponder];
Use this