UITextField auto-capitalization type - iPhone App

后端 未结 7 1651
故里飘歌
故里飘歌 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:05

    You can even do that form the Storyboard or .xib file. Just have to select the textfield and in the attribute inspector on the right there is a Capitalization section where you can pick whatever suits you. In your case it's capitalisation "Words".

提交回复
热议问题