第一次加载 UIKeyboard ,会非常卡,大概 3-5 秒的延迟,有什么好的方法去预加载吗?因为第一次加载过后,后面都不会卡了
有一个方法感觉不是特别好
UITextField *lagFreeField = [[UITextField alloc] init]; [self.window addSubview:lagFreeField]; [lagFreeField becomeFirstResponder]; [lagFreeField resignFirstResponder]; [lagFreeField removeFromSuperview];
在 didFinishLaunchingWithOptions 方法里面加入上面的代码可以把加载的时候挪到启动的时候,但是这样感觉还是不好,会导致启动太慢。其他的文章有点云里雾里的,没有找到能解决问题的方法。
![]() | 1 ibcker 2015-10-14 23:57:37 +08:00 我也是用这个 |
![]() | 2 Tedko 2015-10-15 03:34:34 +08:00 same question here |
![]() | 3 Tedko 2015-10-22 11:51:39 +08:00 有人知道怎么 fix 麽 |