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?
You can turn off auto-capitalization with the .autocapitalizationType property in the UITextInputTraits protocol.
textfield.autocapitalizationType = UITextAutocapitalizationTypeNone;
I think now is: http://docs.appcelerator.com/titanium/2.1/index.html#!/api/Titanium.UI.TextField-property-autocapitalization
In Swift:
textField.autocapitalizationType = UITextAutocapitalizationType.None
To avoid completely there are three properties that we can set
textField.autocapitalizationType = .none;
and
textfield.autocorrectionType = .no;
and
textField.spellCheckingType = .no
Only setting .autocapitalizationType = .none; works but better we set other both the properties to avoid capitalising from autocorrection and spell checking.
Try this code:
textfieldname.autocapitalizationType = UITextAutocapitalizationTypeNone;