5
A
回答
5
測試這個:UIKeyBoard
檢查狀態
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(keyboardWillShow:) name:UIKeyboardWillShowNotification object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(keyboardWillHide:) name:UIKeyboardWillHideNotification object:nil];
4
使用鍵盤通知。
鍵盤聲明:
當系統顯示或隱藏鍵盤,這幾個職位鍵盤通知。這些通知包含有關鍵盤的信息,包括其大小,可用於涉及移動視圖的計算。註冊這些通知是獲取有關鍵盤的某些類型信息的唯一方法。系統爲鍵盤相關事件提供以下通知:
UIKeyboardWillShowNotification
UIKeyboardDidShowNotification
UIKeyboardWillHideNotification
UIKeyboardDidHideNotification
相關問題
- 1. 如何知道鍵盤(dis)是否出現在Android中?
- 2. 如何知道出現的鍵盤是Split還是Normal?
- 3. 有誰知道他們是如何做這個UI鍵盤?
- 4. QML - 如何知道孩子是否有鍵盤焦點
- 5. 當鍵盤出現的iOS
- 6. 鍵盤擴展:是否有可能從iOS iOS鍵盤繼承功能和UI?
- 7. 我如何知道推送通知是否在iOS中傳遞?
- 8. 如何知道iOS是否打開wifi?
- 9. 如何知道在iOS8中預測鍵盤是否開啓/關閉?
- 10. iOS:如何知道現場音頻流是否「On Air」?
- 11. 如何知道掛鉤的鍵盤ID?
- 12. 鍵盤如何知道無限循環?
- 13. 如何知道鍵盤語言? (en/fr)
- 14. 如何當鍵盤出現
- 15. 如何知道鍵盤佈局是否在數字和字母之間變化?
- 16. 如何知道Gtk :: ComboBoxText是否彈出
- 17. 如何知道是否由於外鍵違規而拋出SQLException?
- 18. 如何知道右鍵單擊是否在Tkinter python中完成?
- 19. iOS 11 - 鍵盤高度在鍵盤通知中返回0
- 20. C#如何知道exe是否在硬盤上
- 21. Kentico - 如何知道整個網站是否出現故障
- 22. 如何防止鍵盤出現在phonegap?
- 23. Android:我怎麼知道軟鍵盤是否顯示?
- 24. iOs CSS鍵盤出現性能
- 25. 如何實現iOS鍵盤數字鍵盤?
- 26. 如何知道是否
- 27. 如何知道運行XNA應用程序的手機是否有鍵盤?
- 28. 如何知道這個線程是否是一個UI線程
- 29. 如何知道滾動條是否出現在瀏覽器(jQuery)中?
- 30. 我們如何知道iPad是否使用藍牙鍵盤或設備虛擬鍵盤?
請參閱[如何以編程方式檢查鍵盤是否存在於iphone應用程序?]的答案(http://stackoverflow.com/questions/ 1490573 /如何對編程 - 檢查 - 是否-A-鍵盤是至今功能於iphone-APP) – Bigood 2013-03-05 08:42:05