UITextField auto-capitalization type - iPhone App

后端 未结 7 1656
故里飘歌
故里飘歌 2021-01-30 15:29

Is there a way to set the autocapitalizationType for a UITextField so that the first letter of each word is capitalized by default?

This Is A

7条回答
  •  误落风尘
    2021-01-30 16:00

    Use textField.autocapitalizationType = UITextAutocapitalizationTypeWords;

    For more information please read: UITextInputTraits Protocol Reference

提交回复
热议问题