Rupesh Rupesh - 1 year ago 134
Objective-C Question

How to capitalized first letter of text

There is some text in a text field. Before setting it to txtfdName, I want to capitalize the first letter.

[addrecipe.txtfdName setText:txtfield1.text];

Answer Source

Use autocapitalizationType for capital letter of UITextField.

txtfield1.autocapitalizationType = UITextAutocapitalizationTypeWords;
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download