首次登录应用程序后自动填充iOS12警报消息用户以保存密码? [英] Autofill iOS12 alert message user to save password after login to the app first time?

查看:27
本文介绍了首次登录应用程序后自动填充iOS12警报消息用户以保存密码?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用本教程为我的 iOS 应用实现自动填充

解决方案

您必须清除文本字段并删除视图层次结构的视图.

注意:使用 Xcode 10,您可以使用在模拟器中保存用户名密码.

override func viewDidDisappear(_animated: Bool) {super.viewDidDisappear(动画)view.endEditing(真)txtfEmail.text = niltxtfPassword.text = nil}

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?

解决方案

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
}

这篇关于首次登录应用程序后自动填充iOS12警报消息用户以保存密码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆