隐藏 UITextField 密码 [英] Obscure a UITextField password
本文介绍了隐藏 UITextField 密码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在做一个登录页面.我有 UITextField 作为密码.
I am doing a login page. I have UITextField for password.
显然,我不想看到密码;相反,我希望在打字时显示圆圈.您如何设置字段以使其发生?
Obviously, I do not want the password to be seen; instead, I want circles to show when typing. How do you set the field for this to happen?
推荐答案
请设置您的 UItextField 属性安全..
Please set your UItextField property secure..
试试这个..
textFieldSecure.secureTextEntry = true
textFieldSecure 是您的 UITextField...
textFieldSecure is your UITextField...
这篇关于隐藏 UITextField 密码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文