iPhoneKeyboard 键盘

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

iPhone本身屏幕上的键盘的接口。这个接口允许你显示不同的键盘:ASCII码,数字,URL,电子邮件,和其他。

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.

iPhoneKeyboard.visible和iPhoneKeyboard.area被用来确定键盘正显示(激活)和哪一部分屏幕使用。

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.

这个类的实例可以用来作为一个yield指令。它等待直到变为无效,键盘从屏幕上消失了。

Variables变量

Class Functions类函数

Class Functions类函数

最后修改:2011年4月8日 Friday 15:46

本脚本参考基于Unity 3.4.1f5

英文部分版权属©Unity公司所有,中文部分© Unity圣典 版权所有,未经许可,严禁转载 。