UITextField 如何设置为密码方式显示?

UITextField 怎么设置成为一个 *号密码框 呢?

可以在 Interface Builder 里面直接设置吗?

Attributes inspector 中 Text Field 下选中 Secure就可以了。

原文地址:https://www.cnblogs.com/bmate/p/3193312.html