Skip to content

Instantly share code, notes, and snippets.

@peerasak-u
Created December 7, 2014 17:14
Show Gist options
  • Select an option

  • Save peerasak-u/ba38c9ff4924bf133355 to your computer and use it in GitHub Desktop.

Select an option

Save peerasak-u/ba38c9ff4924bf133355 to your computer and use it in GitHub Desktop.
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
// Override point for customization after application launch.
[self preloadKeyboard];
return YES;
}
- (void)preloadKeyboard
{
UITextField *lagFreeTextField = [[UITextField alloc] init];
[self.window addSubview:lagFreeTextField];
[lagFreeTextField becomeFirstResponder];
[lagFreeTextField resignFirstResponder];
[lagFreeTextField removeFromSuperview];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment