CodeGuy CodeGuy - 15 days ago 15
iOS Question

UITextField auto-capitalization type - iPhone App

Is there a way to set the autocapitalizationType for a

UITextField
so that the first letter of each word is capitalized by default?


This Is An Example Of What I Want

Answer

Use textField.autocapitalizationType = UITextAutocapitalizationTypeWords;

For more information please read: UITextInputTraits Protocol Reference

Comments