【发布时间】:2018-11-19 16:27:16
【问题描述】:
我刚刚将代码更新到 swift 4.2 并修复了所有错误。现在我正在尝试使用“MessageKit”将信使放入我的应用程序中。一切都更新了,但我遇到了这些问题......现在是MessagesInputBarDelegate
“使用未声明的类型'MessagesInputBarDelegate'”
和
“使用未声明的类型'MessageInputBar'”
还有,
“参数标签 '(type:)' 不匹配任何可用的重载”
和
“无法转换'_类型的值?'到预期的参数类型“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 = ""
}
}
参数标签“(type:)”不匹配任何可用的重载
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())
}
【问题讨论】:
标签: swift messagekit