How to make the text of UITextField to appear with First letter Capital in iPhone

Viewed 38258

I have a text box and I am only interested in capitalizing the first letter, So how to do that in iPhone UITextField.

6 Answers

try this:

tf = [[UITextField alloc] init];
tf.autocapitalizationType = UITextAutocapitalizationTypeSentences;

or set this property in the properties inspector in Interface Builder

Related