Disable auto correction of UITextField

后端 未结 6 2202
南笙
南笙 2020-12-14 05:34

When I try to edit texts in my iPhone application (UITextfield), it auto-corrects my input.

Could you let me know how can I disable this?

6条回答
  •  甜味超标
    2020-12-14 06:07

    UITextField* f = [[UITextField alloc] init];
    f.autocorrectionType = UITextAutocorrectionTypeNo;        
    

提交回复
热议问题