iosios8

How to disable iOS 8 emoji keyboard?


Is there any option to stop showing the emoji keyboard in iOS 8? It is not available in numpad and secure text but for email it is there. If it is not possible to disable it how to get the string values from the emoji?


Solution

  • Try this:

    - (BOOL)textField:(UITextField *)textField shouldChangeCharactersInRange:(NSRange)range replacementString:(NSString *)string
    {        
        if ([textField isFirstResponder])
        {
            if ([[[textField textInputMode] primaryLanguage] isEqualToString:@"emoji"] || ![[textField textInputMode] primaryLanguage])
            {
                return NO;
            }
        }
        return YES;
    }
    

    for more info see here.

    EDIT :

    You can hide emoji from Keyboard using this code:

    txtField.keyboardType=UIKeyboardTypeASCIICapable;
    

    EDIT :

    Hide emoji selection from keyboard using Interface builder.

    enter image description here