隐藏UITextField密码 [英] Obscure a UITextField password

查看:134
本文介绍了隐藏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 = YES;

textFieldSecure是您的UITextField ...

textFieldSecure is your UITextField...

这篇关于隐藏UITextField密码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆