【问题标题】:iMessage app - When inserting a message "nil" error is printediMessage 应用程序 - 插入消息时打印“nil”错误
【发布时间】:2017-06-10 15:02:02
【问题描述】:
conversation.insert(message, completionHandler: { (error: Error?) in
    print(error as Any)
})

在创建要在 iMessage 应用程序中作为消息发送的图片时使用上述代码。日志中正在打印“nil”。会不会有问题?

由于与应用的任何进一步交互,都会导致应用崩溃。不确定这些是否相关!

【问题讨论】:

    标签: ios swift swift3 imessage imessage-extension


    【解决方案1】:

    如果errornil 完全没有错误,则操作成功。

    崩溃的原因一定是在其他地方。

    【讨论】:

    • 感谢您消除我的疑虑。我应该去别处搜索。猜猜,是 AutoLayoutConstraints..!!
    猜你喜欢
    • 2016-12-23
    • 1970-01-01
    • 1970-01-01
    • 2021-07-20
    • 1970-01-01
    • 2016-12-11
    • 1970-01-01
    • 1970-01-01
    • 2021-01-22
    相关资源
    最近更新 更多