First letter in UiTextField lowercase

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

    In Objective-C:

    textField.autocapitalizationType = UITextAutocapitalizationTypeNone;
    

    In Swift:

    textField.autocapitalizationType = .none
    

提交回复
热议问题