Disable auto correction of UITextField

后端 未结 6 2204
南笙
南笙 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条回答
  •  旧时难觅i
    2020-12-14 06:17

    Swift version

    I landed here looking for a Swift version of this:

    myInput.autocorrectionType = .No
    

    Also read the answer by @MaikelS

    Swift 3.0

    textField.autocorrectionType = .no
    

提交回复
热议问题