Skip to content

Instantly share code, notes, and snippets.

@maojj
Created July 30, 2013 02:10
Show Gist options
  • Save maojj/6109633 to your computer and use it in GitHub Desktop.
Save maojj/6109633 to your computer and use it in GitHub Desktop.
enable emogi
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];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment