Skip to content

Instantly share code, notes, and snippets.

@bogren
Last active May 4, 2017 08:16
Show Gist options
  • Save bogren/94fd8fe40ec286cd5585 to your computer and use it in GitHub Desktop.
Save bogren/94fd8fe40ec286cd5585 to your computer and use it in GitHub Desktop.
A hax used to pre-load the keyboard
/*
* 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