Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iOS Email Keyboard has Emoji button, can this be disabled?

When setting the keyboard in IB or programatically as below for a UITextField.

[textFieldOutlet setKeyboardType:UIKeyboardTypeEmailAddress];

The keyboard has an Emoji icon which means you can type in Emoji's in an email address (which is a bit rubbish). Can this be disabled? I understand I can change the type to ASCIICapable but then I do not have the easy access to @ and . signs.

I have worked around it with this which just stops the Emoji being entered but the button is still there (Credit Here with MeganZhou answer).

- (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;
}

I have also noted that the icon is there when you are typing an email address in Mail too.

This is iOS8 but may also be in earlier version.

like image 262
Recycled Steel Avatar asked Feb 13 '15 11:02

Recycled Steel


People also ask

How do I turn off the emoji button?

Select the virtual keyboard you're using (like Gboard, and not “Google voice typing”) and then Preferences. (There's a shortcut to this location, too: With virtual keyboard displayed, tap and hold on the comma [,] key until you see a small Settings gear appear.) Now, disable the option “Show emoji switch key.”

Can you disable Emoji keyboard?

Steps to Disable Emoji Bar on GBoardStart typing and once you see the emoji bar, swipe left on it. You will see a Remove Bar button, tap on it and it will take you to settings. Here you can disable the Emoji fast-access bar toggle to disable that emoji bar completely.

How do I get rid of the emoji bar?

Just swipe left on the emoji bar and you would see the option to disable “Remove Bar“.


1 Answers

User have to follow below steps if he wants to get rid of emoji button.

  • Settings---> General ---> keyboard-----> Keyboards---> You'll see ENGLISH and EMOJI.
  • On the top right corner is the word EDIT.
  • Press EDIT, and then swipe delete to remove the EMOJI keyboard.

This will remove the emoji button and user can also have easy access to @ and . signs.

Note:- For security reasons, iOS does not allow programmers to remove keyboard programatically.

like image 114
pkc456 Avatar answered Oct 18 '22 02:10

pkc456