If you want to hide the keyboard when you tap a button and you have more than one UITextFields in your view, then you should use:
UITextFields
view
[self.view endEditing:YES];
Tap anywhere on the view, and the keyboard will disappear.
2.1m questions
2.1m answers
60 comments
57.0k users