Skip to content

Instantly share code, notes, and snippets.

@swr
Created June 15, 2014 23:59
Show Gist options
  • Save swr/110448fdd2a2049a8e13 to your computer and use it in GitHub Desktop.
Save swr/110448fdd2a2049a8e13 to your computer and use it in GitHub Desktop.
Re-enable the ability to resignFirstResponder in a modal view
// In the view controller controlling the modal:
- (BOOL)disablesAutomaticKeyboardDismissal {
return NO;
}
// Then you can
[self.state resignFirstResponder];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment