0与融云IMKIT开发问题

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

    {

    //

    }

发表评论

电子邮件地址不会被公开。 必填项已用*标注