Browsing archives for February, 2012

A handy way to dismiss keyboard

iOS Development,Objective-C 6 February 2012 0 Comments

This method looks at the current view and its subview hierarchy for the text field that is currently the first responder. If it finds one, it asks that text field to resign as first responder. If the force parameter is set to YES, the text field is never even asked; it is forced to resign. [...]