xcode 制作表情符号应用

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/1225514/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-14 18:42:48  来源:igfitidea点击:

Making An Emoji Enabeling App

iphonexcodeipod-touch

提问by iTz Sillohsk8

I know they sell a lot of apps in the app store that claim to "unlock" emoji keyboards. Do you know how I would go about doing this? I want to made an app that enables emoji keyboards. I have payed the 100 dollar developers license fee if this makes a difference. Thanks!

我知道他们在应用商店中出售了很多声称可以“解锁”表情符号键盘的应用。你知道我会怎么做吗?我想制作一个支持表情符号键盘的应用程序。如果这有所作为,我已经支付了 100 美元的开发人员许可费。谢谢!

回答by notnoop

Based on one of the samples provided in the links above you can do the following:

根据以上链接中提供的示例之一,您可以执行以下操作:

NSString *path = [NSHomeDirectory() stringByAppendingPathComponent:
                  @"../../Library/Preferences/com.apple.Preferences.plist"];
NSMutableDictionary *dict =
    [NSMutableDictionary dictionaryWithContentsOfFile:path];
[dict setObject:[NSNumber numberWithBool:YES] forKey:@"KeyboardEmojiEverywhere"];
[dict writeToFile:path atomically:NO];

回答by Lounges