First letter in UiTextField lowercase

daidai picture daidai · Apr 6, 2011 · Viewed 35.4k times · Source

How do you make it so that when you start typing on the keyboard after youve clicked on a UITextfield the first letter isn't a capital automatically?

Answer

pt2ph8 picture pt2ph8 · Apr 6, 2011

In Objective-C:

textField.autocapitalizationType = UITextAutocapitalizationTypeNone;

In Swift:

textField.autocapitalizationType = .none