Created
January 9, 2013 23:02
-
-
Save marcuswestin/4497824 to your computer and use it in GitHub Desktop.
Hide the keyboard in iOS, no matter what view focus currently
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
- (void) hideKeyboard { | |
UITextView* view = [[UITextView alloc] initWithFrame:CGRectMake(0,0,0,0)]; | |
[webView addSubview:view]; | |
[view becomeFirstResponder]; | |
[view resignFirstResponder]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment