9 ответов:
пожалуйста, установите свойство UItextField безопасным..
попробуйте это..
textFieldSecure.secureTextEntry = YES;textFieldSecure - это ваше UITextField...
можно сделать это для неясного пароля UITextField:
код
Цель-C:
textField.secureTextEntry = YES;Swift:
textField.isSecureTextEntry = true
в Interface Builder установите свойство Secure CheckBox
или
в наборе кода
Цель-C:
yourTextField.secureTextEntry = YES;Swift:
yourTextField.secureTextEntry = 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.


Comments