You can set the autocapitalizationType UITextField property so that all input is uppercase. I find that works fine on the simulator (when you press the simulator keyboard, not the Mac keyboard), but not on the device? Everything stays lowercase.
In the UICatalog demo, I added to the textFieldNormal method:
textFieldNormal.autocapitalizationType = UITextAutocapitalizationTypeAllCharacters;
Added delegate to display actual autocapitalizationType for UITextField:
- (void)textFieldDidBeginEditing:(UITextField *)textField { NSLog( @"textField.autocapitalizationType=%d", textField.autocapitalizationType ); }
It will display 3 correctly (= UITextAutocapitalizationTypeAllCharacters), but everything you click remains lowercase. What am I missing?
source share