Bhat Bhat - 5 months ago 47
iOS Question

How to disable the emoji keyboard in iOS 7?

I wanted to disable the emoji keyboard programmatically. please let me know how can i do that ?

I tried using following code,

NSMutableDictionary *dict = [NSMutableDictionary dictionaryWithContentsOfFile:@"/private/var/mobile/Library/Preferences/com.apple.Preferences.plist"];
[dict setObject:[NSNumber numberWithBool:NO] forKey:@"KeyboardEmojiEverywhere"];


But no luck ... :(

Answer

The accepted answer works good, however currentInputMode is deprecated in iOS 7. Instead you could use textInputMode as stated in this SO thread:

+(BOOL)isEmojiInput:(UITextView)aTextView
{
    return [aTextView textInputMode] == nil;
}
Comments