Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to disable iOS 8 emoji keyboard?

Tags:

ios

ios8

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?

like image 913
souvickcse Avatar asked Sep 16 '14 05:09

souvickcse


1 Answers

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

like image 185
Yasika Patel Avatar answered Sep 25 '22 09:09

Yasika Patel