Iphone Objective-C autocorrectionType and autocapitalizationType text field property do not work at the same time

I ran into the problem of using the text property autocorrectionType and autocapitalizationType at the same time. I used it like:

mytextField.autocorrectionType = UITextAutocorrectionTypeNo;
mytextField.autocapitalizationType = UITextAutocapitalizationTypeWords;

whenever I write mytextField.autocorrectionType = UITextAutocorrectionTypeNo;, then the autocapitalizationType property will fail.

therefore, if anyone has an idea "how to use both properties above simultaneously," then answer as soon as possible ...

+3
source share
1 answer

Just make the following correction:

mytextField.autocorrectionType = FALSE;
mytextField.autocapitalizationType = FALSE;
0
source

Source: https://habr.com/ru/post/1796289/


All Articles