Making An Emoji Enabeling App

前端 未结 2 613
天命终不由人
天命终不由人 2020-11-30 00:03

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 emo

2条回答
  •  情歌与酒
    2020-11-30 00:54

    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];
    

提交回复
热议问题