Select Page

When a textbox has focus, and pops up a keyboard, the keyboard can be removed with this statement:

[self.textBox resignFirstResponder]; //If keyboard visible, remove keyboard

In this example “textBox” was the textbox (UITextField) having the focus.
If you have a lot of textboxes on a form it can get a lot of work to have all those textboxes do “resignFirstResponder”. There is an easier way to accomplish that, resigning first responder for all textboxes on a view! The code for this is:

[self.view endEditing:TRUE]; //Resign firstresponder for all textboxes on the view