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

后端 未结 6 1359
抹茶落季
抹茶落季 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条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-24 11:27

    Swift 2:

    textField.autocorrectionType = .No
    textField.autocapitalizationType = .None
    

提交回复
热议问题