码迷,mamicode.com
首页 > 编程语言 > 详细

(细节控)swift3.0与融云IMKIT开发问题(一部分) override func onSelectedTableRow Method does not override any method from its superclass

时间:2017-01-14 07:49:19      阅读:282      评论:0      收藏:0      [点我收藏+]

标签:get   eth   会话   ons   animate   super   oid   方案   rcc   

 原官网文档方案如下,在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 from its superclass

标签:get   eth   会话   ons   animate   super   oid   方案   rcc   

原文地址:http://www.cnblogs.com/dada2008/p/6284567.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!