久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

UITextField 的初始 iPhone 虛擬鍵盤顯示速度很慢.是

Initial iPhone virtual keyboard display is slow for a UITextField. Is this hack around required?(UITextField 的初始 iPhone 虛擬鍵盤顯示速度很慢.是否需要這種黑客攻擊?)
本文介紹了UITextField 的初始 iPhone 虛擬鍵盤顯示速度很慢.是否需要這種黑客攻擊?的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

問題描述

除其他外,我有一個帶有 UITextField 的應用程序.當用戶第一次點擊文本字段時,虛擬鍵盤出現之前會有明顯的延遲.在 3GS 上不是很明顯,但在舊款 iPhone 上延遲可能在 1 秒左右.之后,鍵盤總是會立即彈出.延遲只是應用啟動后鍵盤第一次彈出.

I have an app with a UITextField, amongst other things. When the user first taps on the text field, there is a noticeable delay before the virtual keyboard appears. On a 3GS it isn't too obvious, but on an older iPhone the delay can be around 1 second. After that the keyboard always pops up instantly. The delay is only the first time the keyboard pops up after app startup.

看起來最初的 UIKeyboard 實例化需要一些時間(相當多...),但在那之后會一直保留.

It looks like the initial UIKeyboard instantiation takes some time (quite a bit...) but is kept around after that.

我發現這方面的信息非常少,這讓我很驚訝.但是,我確實發現了這篇關于問題的文章以及一個破解解決方案.

I found very little information about this, which surprised me. However I did find this write up of the issue along with a hack-around solution.

http://blog.weareuproar.com/preloading-the-uikeyboard

我的問題是:這是唯一可用的解決方案嗎?有沒有辦法向框架發出信號(例如通過 info plist?)以在啟動時實例化鍵盤?

My question is: is this hack around the only available solution? Is there a way to signal the framework (e.g. via info plist?) to instantiate the keyboard on startup?

推薦答案

不,沒有其他(記錄的)方法可以做到這一點.甚至 Apple 的內置應用程序(如地圖)也面臨同樣的問題.您可以使用鏈接到的 hack,也可以遵循 Apple 的建議,在您真正需要之前不要提前加載內容.順便說一句,這對于 iPhone 3Gs 和新的 iPod touch 來說已經不是什么大問題了.更新更快的設備幾乎可以立即加載鍵盤.

No, there is no other (documented) way to do that. And even Apple's built-in apps (such as Maps) suffer from the same problem. You can either go with the hack you linked to or follow Apple's advice to not load stuff in advance before you really need it. By the way, this isn't much of an issue anymore with the iPhone 3Gs and the new iPod touch. The newer and faster devices load the keyboard almost instantly.

這篇關于UITextField 的初始 iPhone 虛擬鍵盤顯示速度很慢.是否需要這種黑客攻擊?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

相關文檔推薦

Find the CGPoint on a UIView rectangle intersected by a straight line at a given angle from the center point(在與中心點成給定角度的直線相交的 UIView 矩形上找到 CGPoint)
Is it possible to reference a variable with a string and an int?(是否可以使用字符串和 int 引用變量?)
Is there a native YAML library for iPhone?(是否有適用于 iPhone 的本機 YAML 庫?)
View aligned to top of keyboard appears in wrong place in iOS 9 Shortcut Bar only mode(在 iOS 9 Shortcut Bar only 模式下,與鍵盤頂部對齊的視圖出現在錯誤的位置)
Disable speech to text button (Micro phone) on soft input keyboard in android programmatically(以編程方式在android中的軟輸入鍵盤上禁用語音到文本按鈕(麥克風))
UIkeyboard type(UI鍵盤類型)
主站蜘蛛池模板: 黄色片网站视频 | 日韩女优在线观看 | 嫩草嫩草嫩草嫩草 | 国产欧美激情 | 亚洲裸体视频 | 日本a v在线播放 | 无遮挡一级毛片 | 欧美福利在线 | 国产精品福利在线 | 久久精品小视频 | 极品av在线 | 国产a视频 | 国产精品偷乱一区二区三区 | 国产激情久久 | 在线不卡一区 | 日韩在线视频一区二区三区 | 日本精品中文字幕 | 午夜免费av| 九九热在线精品 | 88av视频| 一区二区免费视频 | 国产伦精品一区二区免费 | 国产成人小视频 | 黄色成人免费网站 | 一级黄色免费看 | 午夜免费福利视频 | www.色综合 | 日韩 国产 欧美 | 成年在线观看 | 一区二区不卡 | 日韩一级免费 | 亚洲欧美久久 | 又黄又爽又色视频 | 色大师av | 天天干影院| 欧美资源在线 | a在线免费观看 | 色婷婷亚洲 | 国产福利91精品一区二区三区 | 久久免费影院 | 日韩欧美黄色片 |