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];
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.
Use autocapitalizationType for capital letter of UITextField.
txtfield1.autocapitalizationType = UITextAutocapitalizationTypeWords;
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With