Autofill iOS12 alert message user to save password after login to the app first time?

≡放荡痞女 提交于 2020-01-15 05:10:26

问题


I'm implementing autoFill to my iOS app using this tutorial "iOS 12 Password Tools: Improving User Security and Experience" everything work fine but the iOS is not prompt me with UIAlert to save the password when I login for the first time. I want to ask how I can trigger the UIAlert to prompt the user to save the password to keychain first time?


回答1:


you have to clear the text fields and remove the view for View hierarchy.

Note: with Xcode 10 you can use save the username password in the simulator.

override func viewDidDisappear(_ animated: Bool) {
    super.viewDidDisappear(animated)
    view.endEditing(true)

    txtfEmail.text =  nil
    txtfPassword.text = nil
}


来源:https://stackoverflow.com/questions/55831632/autofill-ios12-alert-message-user-to-save-password-after-login-to-the-app-first

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!