Hide password with “•••••••” in a textField

前端 未结 7 1932
时光说笑
时光说笑 2020-12-23 02:20

In my app there is a textField where the user have to put is password in and i want that when he enter a character it change it to \'•\' how can i do this?

7条回答
  •  忘掉有多难
    2020-12-23 03:08

    You can do this by using properties of textfield from Attribute inspector

    Tap on Your Textfield from storyboard and go to Attribute inspector , and just check the checkbox of "Secure Text Entry" SS is added for graphical overview to achieve same

提交回复
热议问题