First letter in UiTextField lowercase

前端 未结 11 1474
旧时难觅i
旧时难觅i 2020-12-24 04:45

How do you make it so that when you start typing on the keyboard after youve clicked on a UITextfield the first letter isn\'t a capital automatically?

11条回答
  •  执笔经年
    2020-12-24 05:28

    You can turn off auto-capitalization with the .autocapitalizationType property in the UITextInputTraits protocol.

    textfield.autocapitalizationType = UITextAutocapitalizationTypeNone;
    

提交回复
热议问题