-
-
Save edwardean/11ff3883e6d89d195e3cf1ae03cf0e95 to your computer and use it in GitHub Desktop.
Resign first responder from anywhere.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Make sure viewDidAppear has happened before sending this action to ensure that all links | |
| // in the responder chain are connected. | |
| // http://stackoverflow.com/a/11768282/1306872 | |
| [[UIApplication sharedApplication] sendAction:@selector(resignFirstResponder) | |
| to:nil | |
| from:nil | |
| forEvent:nil]; | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment