(细节控)swift3.0与融云IMKIT开发问题(一部分) override func onSelectedTableRow Method does not override any method
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了(细节控)swift3.0与融云IMKIT开发问题(一部分) override func onSelectedTableRow Method does not override any method相关的知识,希望对你有一定的参考价值。
原官网文档方案如下,在swift3.0的情况下出现 override func onSelectedTableRow Method does not override any method from its superclass
这是因为swift3.0 有很多变更,需要更换下onSelectedTableRow参数。
//重写RCConversationListViewController的onSelectedTableRow事件
override func onSelectedTableRow(conversationModelType: RCConversationModelType, conversationModel model: RCConversationModel!, atIndexPath indexPath: NSIndexPath!) {
//打开会话界面
let chat = RCConversationViewController(conversationType: model.conversationType, targetId: model.targetId)
chat.title = "想显示的会话标题"
self.navigationController?.pushViewController(chat, animated: true)
}
//obj 文件中的定义
- (void)onSelectedTableRow:(RCConversationModelType)conversationModelType
conversationModel:(RCConversationModel *)model
atIndexPath:(NSIndexPath *)indexPath;
swift3.0 修正后的
override func onSelectedTableRow(_ conversationModelType: RCConversationModelType, conversationModel model: RCConversationModel!, at indexPath: IndexPath!)
{
//
}
以上是关于(细节控)swift3.0与融云IMKIT开发问题(一部分) override func onSelectedTableRow Method does not override any method的主要内容,如果未能解决你的问题,请参考以下文章