iOS 5:如何在我的应用程序中禁用表情符号键盘? [英] iOS 5: How can I disable Emoji keyboard in my application?

查看:125
本文介绍了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:

制作一个Emoji Enabeling应用程序

但这将在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.

这篇关于iOS 5:如何在我的应用程序中禁用表情符号键盘?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆