iOS 5:如何在我的应用程序中禁用表情符号键盘?
问题描述:
我不想在我的应用程序中使用表情符号键盘,所以我只想在我的应用程序中禁用它。有一种方法可以通过应用此链接的答案来实现:
I don't want the Emoji keyboard allowance in my application so I want to disable it only in my application. There is one way to do it by applying the answer from this link:
但这将不在iOS 5(iOS 4.3)上运行做工作)。有没有办法在iOS 5中禁用表情符号键盘。谢谢。
But this would not work on iOS 5 (iOS 4.3 do work). Is there any way to disable Emoji keyboard in iOS 5. Thank you.
答
你可以设置属性 UITextField的KeyboardType
或UITextView到 UIKeyboardTypeASCIICapable
。这会禁用此UI元素的表情符号键盘。
You can simply set the property keyboardType
of the UITextField or UITextView to UIKeyboardTypeASCIICapable
. This disables the Emoji Keyboard for this UI element.