安全UITextField文本更改为(*)星号字符 [英] Secure UITextField text change to (*) asterisk character

查看:1184
本文介绍了安全UITextField文本更改为(*)星号字符的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何将安全的 UITextField 文本(只是一堆点)更改为(*)星号字符,如下图所示?



  [textField setSecureTextEntry:YES}你可以通过编程方式设置它`

]。

或IB(底部的安全复选框)




How can I change a secure UITextField text (which is simply a bunch of dots) to (*) asterisk characters like in the image below?

解决方案

You can set it programmatically by

[textField setSecureTextEntry:YES];

or in IB (secured checkbox at the bottom)

这篇关于安全UITextField文本更改为(*)星号字符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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