简体   繁体   English

如何在iPhone iOS 5.0中禁用表情符号键盘

[英]How to disable Emoji Keyboard in iPhone iOS 5.0

I enabled Emoji Keyboard in an iOS 5.0 device by using this code: 我使用以下代码在iOS 5.0设备中启用了表情符号键盘:

NSMutableDictionary *dict = [NSMutableDictionary dictionaryWithContentsOfFile:@"/private/var/mobile/Library/Preferences/com.apple.Preferences.plist"];
[dict setObject:[NSNumber numberWithBool:YES] forKey:@"KeyboardEmojiEverywhere"];
[dict writeToFile:PREFS_FILE atomically:NO];

It worked great, and I was able to see an option for Emoji keyboard in the Settings ->General -> Keyboard -> International keyboards ->Add New Keyboard 它工作得很好,我能够在设置 - >常规 - >键盘 - >国际键盘 - >添加新键盘中看到表情符号键盘的选项

But now, I want to remove the Emoji keyboard from International Keyboards list, as it was before. 但现在,我想从国际键盘列表中删除表情符号键盘,就像以前一样。 For this, I did: 为此,我做了:

[dict removeObjectForKey:@"KeyboardEmojiEverywhere"];

But the Emoji Keyboard is still visible, I am not able to get it to disappear. 但表情符号键盘仍然可见,我无法让它消失。

Any thoughts? 有什么想法吗?

Restart your iPhone after removing from Application. 从应用程序中删除后重新启动iPhone。 You can also install Emoji keyboard from Appstore, the delete it, restart. 您也可以从Appstore安装Emoji keyboard ,删除它,重启。 You will get Emoji keyboard removed. 你将删除Emoji keyboard

You don't remove the key, you set it to NO: 您没有删除密钥,您将其设置为NO:

[dict setObject:[NSNumber numberWithBool:NO] forKey:@"KeyboardEmojiEverywhere"];
[dict writeToFile:PREFS_FILE atomically:NO];

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM