UIKeyboard turn Caps Lock on

Posted by Daniel Granger on Stack Overflow See other posts from Stack Overflow or by Daniel Granger
Published on 2010-04-25T15:40:52Z Indexed on 2010/04/25 15:43 UTC
Read the original article Hit count: 416

Filed under:
|
|

I need my user to input some data like DF-DJSL so I put this in the code:

theTextField.autocapitalizationType = UITextAutocapitalizationTypeAllCharacters;

But unfortunately what happens is the first to letter type in CAPS but then letter immediately after typing the hyphen will be in lower case and then the rest return to CAPS therefore producing output like this (unless the user manually taps the shift button after typing a hyphen): DF-dJSL

How can I fix this?

Many Thanks

© Stack Overflow or respective owner

Related posts about iphone

Related posts about iphone-sdk