Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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];
like image 311
Rupesh Avatar asked Apr 26 '11 09:04

Rupesh


People also ask

What is capitalize First letter?

Capitalization (American English) or capitalisation (British English) is writing a word with its first letter as a capital letter (uppercase letter) and the remaining letters in lower case, in writing systems with a case distinction. The term also may refer to the choice of the casing applied to text.


1 Answers

Use autocapitalizationType for capital letter of UITextField.

txtfield1.autocapitalizationType = UITextAutocapitalizationTypeWords;
like image 107
Chetan Bhalara Avatar answered Oct 06 '22 23:10

Chetan Bhalara