UIKit: Hide the keyboard without a reference to the currently focused text field

A way more useful method than resignFirstResponder, because you don’t need a reference to the UITextField in question.

[self.view endEditing:YES];

  1. objectivesea reblogged this from nevyn and added:
    more useful method than resignFirstResponder, because you...need a reference
  2. nevyn posted this