Моя проблема в том, что если я удалю текстовое поле «подтвердить пароль», появится всплывающее окно «сохранить пароль», и я смогу сохранить пароль, но мне также нужно текстовое поле «подтверждение пароля». Как только я добавляю текстовое поле «подтвердить пароль», всплывающее окно «сохранить пароль» перестает отображаться.
Это мой код:
Код: Выделить всё
func setupTextFields() {
// USERNAME FIELD
usernameTextField.delegate = self
usernameTextField.textContentType = .username
usernameTextField.keyboardType = .emailAddress
usernameTextField.autocapitalizationType = .none
usernameTextField.autocorrectionType = .no
usernameTextField.isSecureTextEntry = false
// PASSWORD
passwordTextField.delegate = self
passwordTextField.textContentType = .newPassword
passwordTextField.isSecureTextEntry = true
passwordTextField.autocapitalizationType = .none
passwordTextField.autocorrectionType = .no
//CONFIRM PASSWORD
confirmpasswordTextField.delegate = self
confirmpasswordTextField.textContentType = .newPassword
confirmpassowrdTextField.isSecureEntry = true
confirmpasswordTextField.autocapitalizationType = .none
confirmpasswordTextField.autocorrectionType = .no
}
В чем может быть причина?
Подробнее здесь: https://stackoverflow.com/questions/798 ... -confirm-p
Мобильная версия