I am trying to keep the first charactor of textFiled "Capital" by setting autocapitalizationType but it is not working. below is snapshot of src code for same.
UITextField* returnTextField = [[UITextField alloc] initWithFrame:frame];
returnTextField.autocorrectionType = UITextAutocorrectionTypeNo;
returnTextField.autocapitalizationType = UITextAutocapitalizationTypeWords;
returnTextField.keyboardType = UIKeyboardTypeEmailAddress;
returnTextField.returnKeyType = UIReturnKeyGo;
returnTextField.clearButtonMode = UITextFieldViewModeWhileEditing;
returnTextField.delegate = self;
Thanks,
Sagar
If you type in the text field using your hardware keyboard, it ignores auto capitalization. However if you use the keypad on the simulator screen, it should auto-capitalize the words.
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