iOS设置textfield为密码框

self.passWordTextField.secureTextEntry = YES;

原文地址:https://www.cnblogs.com/yangmx/p/3770026.html