【问题标题】:Errors IOS 10 - Unable to copy asset information from https://mesu.apple.com/assets/ for asset type com.apple.MobileAsset.TextInput.SpellChecker错误 IOS 10 - 无法从 https://mesu.apple.com/assets/ 复制资产类型 com.apple.MobileAsset.TextInput.SpellChecker 的资产信息
【发布时间】:2017-04-14 21:21:42
【问题描述】:

我有一组 UITextfield 供用户注册。 我的应用程序构建成功,但每当我尝试在电子邮件文本字段中输入 @ 时,它会显示下面的消息并且无法注册用户,无法单击注册按钮。 有谁知道发生了什么?我该如何解决这个问题?

2017-04-14 15:41:26.949699-0400 Oja[72824:36708711] 0x6080003484b0 Copy matching assets reply: XPC_TYPE_DICTIONARY  <dictionary: 0x6080003484b0> { count = 1, transaction: 0, voucher = 0x0, contents =
"Result" => <int64: 0x608000222e40>: 29
}
2017-04-14 15:41:26.951188-0400 Oja[72824:36708711] 0x600000150e30 Daemon configuration query reply: XPC_TYPE_DICTIONARY  <dictionary: 0x600000150e30> { count = 2, transaction: 0, voucher = 0x0, contents =
"Dictionary" => <dictionary: 0x600000345800> { count = 1, transaction: 0, voucher = 0x0, contents =
    "ServerURL" => <dictionary: 0x600000344db0> { count = 3, transaction: 0, voucher = 0x0, contents =
        "com.apple.CFURL.magic" => <uuid: 0x600000043000> C3853DCC-9776-4114-B6C1-FD9F51944A6D
        "com.apple.CFURL.string" => <string: 0x6000000553c0> { length = 30, contents = "https://mesu.apple.com/assets/" }
        "com.apple.CFURL.base" => <null: 0x114b17f40>: null-object
    }
}
"Result" => <int64: 0x600000037360>: 0
}
2017-04-14 15:41:26.951649-0400 Oja[72824:36708711] [MobileAssetError:29] Unable to copy asset information from https://mesu.apple.com/assets/ for asset type com.apple.MobileAsset.TextInput.SpellChecker

【问题讨论】:

标签: ios swift firebase firebase-realtime-database


【解决方案1】:

我以编程方式解决了这个问题。我加了

tf.autocorrectionType = .no 

停止拼写检查。

 let emailTextField: UITextField = {
    let tf = UITextField()
    tf.placeholder = "Email Address"
    tf.translatesAutoresizingMaskIntoConstraints = false
    tf.addTarget(self, action: #selector(handleTextInputchange), for: .editingChanged)
    tf.autocorrectionType = .no
    return tf
}()

【讨论】:

    【解决方案2】:

    只需将文本字段上的自动更正和拼写检查设置为否 你可以走了 直截了当,没有 bs,没有静音 NSlog 信息,快速修复。

    【讨论】:

    • 我该怎么做?
    • @Ola 您可以转到情节提要,然后选择该文本字段。单击右侧面板上的属性检查器,您将看到 Correction 设置为默认值,并且拼写检查也设置为默认值,您需要将它们更改为 No
    • 谢谢它的工作,因为我没有使用故事板,我使用你的概念做了一点不同。
    猜你喜欢
    • 2017-02-13
    • 2021-05-18
    • 2021-10-14
    • 1970-01-01
    • 2019-10-22
    • 2013-01-10
    • 2015-08-02
    • 2017-11-22
    • 1970-01-01
    相关资源
    最近更新 更多