Seventoes Seventoes - 5 months ago 21
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

Try:
[self.view endEditing:YES];