UITextField怎么设置成为密码框

来源:互联网 发布:gm10wm10数据网关 编辑:程序博客网 时间:2024/04/28 04:24

2种方法:


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


2.[password setSecureTextEntry:YES];