首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 移动开发 > Iphone >

UITextField 怎么设置为密码方式显示

2012-08-17 
UITextField 如何设置为密码方式显示?UITextField 怎么设置成为一个 *号密码框 呢?可以在 Interface Build

UITextField 如何设置为密码方式显示?
UITextField 怎么设置成为一个 *号密码框 呢?

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

[解决办法]
Attributes inspector 中 Text Field 下选中 Secure就可以了。
[解决办法]
UItextField * test = [ UItextField alloc] init ];

test.secureTextEntry = YES;
[解决办法]

探讨

UItextField * test = [ UItextField alloc] init ];

test.secureTextEntry = YES;

热点排行