detect the appear and disappear of international keyboard

早过忘川 提交于 2019-12-02 20:47:41

问题


When a keyboard appears, is there a way to detect that it's an international keyboard (with an extra ribbon on top of normal keyboard to show the international characters) and also get it's frame size? I need to use that info to move upward (if needed) the view above the keyboard.


回答1:


Check out this article: http://mobile.tutsplus.com/tutorials/iphone/ios-sdk-keeping-content-from-underneath-the-keyboard/

It addresses most of your questions. In addition to notifications, text views will become or resign 'first responder' which will bring up or hide a keyboard view.

As for whether or not the keyboard shows international characters, I'm not really sure how to do that. However, if you get the frame size of the keyboard (as described in the tutorial) you can adjust your view accordingly assuming that this was your concern.

UPDATE

Also check out: Keyboard resize event in iOS 5 (Chinese keyboard bug)?



来源:https://stackoverflow.com/questions/9073795/detect-the-appear-and-disappear-of-international-keyboard

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!