iPhone: Issue disabling Auto-Cap/autocorrect on a UITextField

后端 未结 6 1366
抹茶落季
抹茶落季 2020-12-24 10:52

For some reason, even though I disable the auto-cap and auto-correct of my UITextField, it\'s still capitalizing the first letter of my input.

Here is the code:

6条回答
  •  Happy的楠姐
    2020-12-24 11:10

    Updated the correct answer for Swift 5

        textField.autocorrectionType = .no
        textField.autocapitalizationType = .none
        textField.spellCheckingType = .no
    

提交回复
热议问题