我刚刚将代码更新为swift 4.2并修复了所有错误。现在我正在尝试使用“MessageKit”将messenger放入我的应用程序中。一切都更新了,但我有这些问题。。。现在它在说
MessagesInputBarDelegate
和
“使用未声明的类型'MessageInputBar'”
也,
“参数标签’(类型:)”与任何可用重载都不匹配”
和
无法将类型为“”的值转换为预期的参数类型“URL”
未声明类型“MessagesInputBarDelegate”的使用
使用未声明的类型“MessageInputBar”
extension CustomerChatViewController: MessagesInputBarDelegate {
func messageInputBar(_ inputBar: MessageInputBar, didPressSendButtonWith text: String) {
let message = Message(user: user, content: text)
save(message)
inputBar.inputTextView.text = ""
}
}
参数标签“(类型:)”与任何可用重载都不匹配
let cameraItem = UIBarButtonItem(type: .system)
无法将类型为“”的值转换为预期的参数类型“URL”
let imageName = [UUID().uuidString, String(Date().timeIntervalSince1970)].joined()
storage.child(channelID).child(imageName).putData(data, metadata: metadata) { meta, error in
completion(meta?.downloadURL())
}