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

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

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

問題描述

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

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 實例化需要一些時間(相當(dāng)多...),但在那之后會一直保留.

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

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

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

我的問題是:這是唯一可用的解決方案嗎?有沒有辦法向框架發(fā)出信號(例如通過 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 的內(nèi)置應(yīng)用程序(如地圖)也面臨同樣的問題.您可以使用鏈接到的 hack,也可以遵循 Apple 的建議,在您真正需要之前不要提前加載內(nèi)容.順便說一句,這對于 iPhone 3Gs 和新的 iPod touch 來說已經(jīng)不是什么大問題了.更新更快的設(shè)備幾乎可以立即加載鍵盤.

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.

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

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

相關(guān)文檔推薦

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 模式下,與鍵盤頂部對齊的視圖出現(xiàn)在錯誤的位置)
Disable speech to text button (Micro phone) on soft input keyboard in android programmatically(以編程方式在android中的軟輸入鍵盤上禁用語音到文本按鈕(麥克風(fēng)))
UIkeyboard type(UI鍵盤類型)
主站蜘蛛池模板: 欧美jizzhd精品欧美巨大免费 | 毛片大全 | 欧美精品一区三区 | 亚洲精品电影网在线观看 | 久久手机在线视频 | 精品久久电影 | h在线播放| 91精品国产综合久久精品图片 | 老司机狠狠爱 | 视频一区二区中文字幕日韩 | 人人射人人草 | 久久久天天 | 久久精品国产久精国产 | 羞羞色视频 | 久久福利电影 | 久久另类| 91中文字幕 | 成人午夜av | 欧美激情在线观看一区二区三区 | 日韩看片 | 欧美精品一区二区在线观看 | 亚洲国产一区二区三区在线观看 | 欧美一二三四成人免费视频 | 欧美日韩亚洲国产综合 | 午夜视频在线免费观看 | 做a视频| 涩涩视频网站在线观看 | 精品欧美一区二区久久久伦 | 欧美精品在线免费 | 久久1区| 久久久久久99 | 日韩激情免费 | 成人在线视频免费观看 | 久久久久香蕉视频 | 九九热在线免费观看 | 一区二区av在线 | 成人av免费 | 日韩在线一区视频 | 欧美日韩精品一区二区 | 精品中文字幕一区 | 丁香五月网久久综合 |