iPhoneKeyboard 键盘

Interface into iPhone native on screen keyboard. This interface allows to display different types of the keyboard: ASCII, Numbers, URL, Email, and others.


Because the appearance of the keyboard has the potential to obscure portions of your user interface, it is up to you to make sure that parts of your user interface are not obscured when the keyboard is being displayed.


iPhoneKeyboard.visible and iPhoneKeyboard.area should be used to determine if the keyboard is being shown (activated) and what portion of the screen is using.


Apple's API does not allow to explicitly control the orientation of the keyboard. Instead you can define iPhoneKeyboard.autorotateToPortrait, iPhoneKeyboard.autorotateToPortraitUpsideDown, iPhoneKeyboard.autorotateToLandscapeLeft, iPhoneKeyboard.autorotateToLandscapeRight if the keyboard needs to be automatically rotated to match a specific orientation of the device.

苹果的API不允许明确地控制键盘的方向。但是,你可以定义iPhoneKeyboard.autorotateToPortrait ,iPhoneKeyboard.autorotateToLandscapeLeft,iPhoneKeyboard.autorotateToPortraitUpsideDown,iPhoneKeyboard.autorotateToLandscapeRight,如果键盘需要自动旋转匹配一个具体的定位装置。

Instance of this class can be used as a yield instruction. It waits until keyboard becomes inactive that is disappears from the screen.



Class Functions类函数

Class Functions类函数

Page last updated: 2011-4-8