开发者

How to disable text-autocorrection for an UITextField or keyboard? [duplicate]

开发者 https://www.devze.com 2023-01-17 22:45 出处:网络
This question already has answers here: 开发者_Go百科Disable auto correction of UITextField (8 answers)
This question already has answers here: 开发者_Go百科Disable auto correction of UITextField (8 answers) Closed 9 years ago.

I have a case where autocorrection NEVER makes any sense. It's incredibly annoying. Can I disable it for the UITextField?


With Interface Builder you can disable "Correction" in the "Attributes" Tab in Inspector.

How to disable text-autocorrection for an UITextField or keyboard? [duplicate]

Programmaticaly you can use

UITextField* textfield = [[UITextField alloc] init];
textfield.autocorrectionType = UITextAutocorrectionTypeNo;
0

精彩评论

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

关注公众号