iOS密码自动填充,建议使用新密码而不是现有密码

问题描述 投票:3回答:1

启动时,我的应用程序中有“登录并注册”表单。

Password Autofill会一直为existing密码字段建议一个“新的强密码”。我将现存字段的contentType设置为.password,将新密码字段的contentType设置为.newPassword,但是iOS拒绝提供“ New Strong Password”视图以外的任何内容。

我在做什么错?

这里是视图层次结构:

View Heirarchy

这是我设置每个字段的textContentType的方式:

Setting the textContentTypes

这就是每次您在登录时点击密码字段,iOS都会执行的操作:

iOS Creating a New Strong Password

ios passwords autofill
1个回答
0
投票

文本字段内容类型.newPassword实际上将建议一个新密码,而不是现有密码。您应该使用文本字段内容类型.password以获得建议并自动填充密码

© www.soinside.com 2019 - 2024. All rights reserved.