Quantcast
Channel: iOS and tvOS
Viewing all articles
Browse latest Browse all 10823

iOS TouchScreenKeyboard.Open Lag

$
0
0
Hi there

I noticed a problem with the touch screen keyboard on Unity 4 which caused a 1-2 second freeze in our game when the TouchScreenKeyboard.Open function was called on an iPhone 5 or lower.

We resolved this by "pre-loading" the keyboard using the following snippet on
didFinishLaunchingWithOptions:

Code (Objective-C):
  1.     // Preloads keyboard so there's no lag on its initial appearance.
  2.     UITextField *lagFreeField = [[UITextFieldalloc] init];
  3.     [self.windowaddSubview:lagFreeField];...
iOS TouchScreenKeyboard.Open Lag

Viewing all articles
Browse latest Browse all 10823

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>