【问题标题】:Why does the Apple-generated strong password autofill have no text?为什么 Apple 生成的强密码自动填充没有文字?
【发布时间】:2021-01-10 09:30:14
【问题描述】:

使用 Apple 的文本输入生成强密码时,当我点击 Use string password 时,我的文本字段为空。

我正在使用内容类型为 newPassword 的 UITextField 并且一切正常,直到我从 Apple 的 UI 中点击 Use strong password。当我这样做时,输入保持为空。它实际上从不显示生成的密码。

【问题讨论】:

    标签: ios passwords uitextfield uitextinput


    【解决方案1】:

    这是因为我的 UITextField .clearsOnBeginEditing 设置为 true。每当文本输入成为第一响应者时,它都会清除现有文本,包括 Apple 生成的强密码。

    不知道如何拥有.clearsOnBeginEditing 并使用 Apple 生成的密码。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2016-05-05
      • 2013-06-08
      • 1970-01-01
      • 1970-01-01
      • 2019-04-05
      • 2021-09-07
      • 1970-01-01
      相关资源
      最近更新 更多