Making an emoji-enabeling app for the iPhone

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

Leave a Comment