Seventoes Seventoes - 1 year ago 104
Objective-C Question

Easy way to dismiss keyboard?

I have quite a few controls scattered throughout many table cells in my table, and I was wondering if there's an easier way to dismiss the keyboard without having to loop through all my controls and resigning them all as the first responder. I guess the question is.. How would I get the current first responder to the keyboard?

Answer Source

[self.view endEditing:YES];

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download