专注收集记录技术开发学习笔记、技术难点、解决方案
网站信息搜索 >> 请输入关键词:
您当前的位置: 首页 > Swift

(细节控)swift3.0与融云IMKIT开发有关问题(一部分) override func onSelectedTableRow Method does not override any meth

发布时间:2011-06-30 07:17:21 文章来源:www.iduyao.cn 采编人员:星星草
(细节控)swift3.0与融云IMKIT开发问题(一部分) override func onSelectedTableRow Method does not override any method from its superclass

 原官网文档方案如下,在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!)

    {

    //

    }

友情提示:
信息收集于互联网,如果您发现错误或造成侵权,请及时通知本站更正或删除,具体联系方式见页面底部联系我们,谢谢。

其他相似内容:

热门推荐: