Suppressing the language select button iPhone

Posted by AWinter on Stack Overflow See other posts from Stack Overflow or by AWinter
Published on 2011-01-13T04:31:41Z Indexed on 2011/01/13 11:53 UTC
Read the original article Hit count: 295

Filed under:
|

I'm working on an application now that contains an account register section. One field with secureTextEntry = NO (for registering only). The idea is this make registration faster and hopefully increases the number of signups. It's simple enough for me to just place a regular UITextField but if the user has any additional language keyboards then it's possible for the user to enter non-password friendly characters. Unlike in when secureTextEntry = YES.

I know I can do

textField.keyboardType = UIKeyboardTypeASCIICapable

to get the text field to display the ASCII keyboard first, but the user will still have the keyboard switch button which will allow them to get to undesirable characters.

Is there a simple method for suppressing the international button or forcing ASCII only keyboard with no international button?

[EDIT] Another perhaps better option might be to suppress multi byte keyboards or even to display the text in the case that secureTextEntry = YES any ideas here?

[EDIT AGAIN] I've decided it's a really bad idea to suppress the international button as non-multibyte characters should all be allowed.

© Stack Overflow or respective owner

Related posts about iphone

Related posts about uitextfield