First letter in UiTextField lowercase

前端 未结 11 1489
旧时难觅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:31

    Try this code:

    textfieldname.autocapitalizationType = UITextAutocapitalizationTypeNone;
    

提交回复
热议问题