自定义键盘出现约5秒的延迟 [英] Custom keyboard appears with ~5seconds delay

查看:155
本文介绍了自定义键盘出现约5秒的延迟的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在用obj-c,Xcode 7(也尝试过6)制作自定义键盘.问题是键盘加载速度太慢.
我试图加载完全空的UIInputViewController的视图-没有更改.我没有xibs,也没有大量资源.如果有人知道该问题的解决方案,请写下答案.用户不会高兴每次键盘滞后等待.

I'm making custom keyboard with obj-c, Xcode 7 (tried 6 too). The issue is that keyboard is loading too slow.
I tried to load completely empty UIInputViewController's view - no changes. I have no xibs, no heavy resources. Please if someone know any solution of this problem, write an answer. user won't be glad to wait every time keyboard lags.

推荐答案

这是一个已知的问题,应用程序启动后首次打开时,键盘(无论是否自定义)可能加载缓慢.
仅在调试模式下发生,由于高度的优化,在发行版本中不应发生.

It's a known issue that the keyboard (custom or not) may load slowly the first time it's opened after the app launch.
It happens only in debug mode and should not happen on a release build thanks to the high optimization level.

这篇关于自定义键盘出现约5秒的延迟的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆