Last active
May 4, 2017 08:16
-
-
Save bogren/94fd8fe40ec286cd5585 to your computer and use it in GitHub Desktop.
A hax used to pre-load the keyboard
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
/* | |
* Lag free keyboard init - Used in appdelegate | |
*/ | |
UITextField *lagFreeField = [[UITextField alloc] init]; | |
[self.window addSubview:lagFreeField]; | |
[lagFreeField becomeFirstResponder]; | |
[lagFreeField resignFirstResponder]; | |
[lagFreeField removeFromSuperview]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment