开发者

Iphone Objective-C textfield property autocorrectionType and autocapitalizationType not work simultaneous

开发者 https://www.devze.com 2023-02-14 16:03 出处:网络
I have faced problem for using textfield property autocorrectionType and autocapitalizationType simultaneous. I used it as following:

I have faced problem for using textfield property autocorrectionType and autocapitalizationType simultaneous. I used it as following:

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

whenever i write mytextField.autocorrectionType = UITextAutocorrectionTypeNo; then autocapitalizati开发者_JAVA百科onType property will not be effected.

so, if anyone have idea for "how to use above both property simultaneous" then reply as soon as possible...


Just make the following correction:

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

精彩评论

暂无评论...
验证码 换一张
取 消