0

我使用以下代码在 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];

效果很好,我可以在设置 -> 常规 -> 键盘 -> 国际键盘 -> 添加新键盘中看到表情符号键盘的选项

但是现在,我想像以前一样从国际键盘列表中删除表情符号键盘。为此,我做了:

[dict removeObjectForKey:@"KeyboardEmojiEverywhere"];

但是表情符号键盘仍然可见,我无法让它消失。

有什么想法吗?

4

2 回答 2

1

Restart your iPhone after removing from Application. You can also install Emoji keyboard from Appstore, the delete it, restart. You will get Emoji keyboard removed.

于 2012-07-15T18:24:30.097 回答
1

您不删除密钥,而是将其设置为 NO:

[dict setObject:[NSNumber numberWithBool:NO] forKey:@"KeyboardEmojiEverywhere"];
[dict writeToFile:PREFS_FILE atomically:NO];
于 2012-07-15T18:28:18.807 回答