隐藏UITextField密码
我正在做一个login页面。 我有UITextField的密码。
显然,我不想看到密码。 相反,我想要在input时显示圈子。 你如何设置这个领域呢?
请设置您的UItextField属性安全..
尝试这个..
textFieldSecure.secureTextEntry = YES; textFieldSecure是你的UITextField …
人们可以这样做的朦胧的UITextField密码:

在Interface Builder中设置安全checkbox属性
要么
在代码集中
Objective-C的:
 yourTextField.secureTextEntry = YES; 
迅速:
 yourTextField.secureTextEntry = true 
 将secureTextEntry属性设置为YES 。 
打开Xib文件并打开密码文本字段的检查器,并勾选安全属性。
对于Swift 3.0:
 txtpassword.isSecureTextEntry = true 
  txt_Password = new UITextField { Frame = new RectangleF (20,40,180,31), BorderStyle = UITextBorderStyle.Bezel, TextColor = UIColor.Black, SecureTextEntry = true, Font = UIFont.SystemFontOfSize (17f), Placeholder = "Enter Password", BackgroundColor = UIColor.White, AutocorrectionType = UITextAutocorrectionType.No, KeyboardType = UIKeyboardType.Default, ReturnKeyType = UIReturnKeyType.Done, ClearButtonMode = UITextFieldViewMode.WhileEditing, }; 
secureTextEntry设置为true。
在Swift 3.0或更高版本中
 passwordTextField.isSecureTextEntry = true 
 只需检查故事板上的Secure Text Entrycheckbox 
 