(detail control) swift3.0 and cloud Imkit development issues (part) override Func Onselectedtablerow Method does not override any Method from its superclass

Source: Internet
Author: User

The original official website document scheme is as follows, in the case of swift3.0 the override func Onselectedtablerow Method does not override the any Method from the its superclass

This is because swift3.0 has a lot of changes and needs to replace the Onselectedtablerow parameter.

Overriding the Onselectedtablerow event for Rcconversationlistviewcontroller

Override Func Onselectedtablerow (Conversationmodeltype:rcconversationmodeltype, Conversationmodel model: rcconversationmodel!, Atindexpath indexpath:nsindexpath!) {

Open the Session interface

Let chat = Rcconversationviewcontroller (ConversationType:model.conversationType, TargetId:model.targetId)

Chat.title = "Session title to display"

Self.navigationcontroller?. Pushviewcontroller (chat, animated:true)

}

Definitions in the obj file

-(void) Onselectedtablerow: (Rcconversationmodeltype) Conversationmodeltype

Conversationmodel: (Rcconversationmodel *) model

Atindexpath: (Nsindexpath *) Indexpath;

swift3.0 the revised

Override Func Onselectedtablerow (_ Conversationmodeltype:rcconversationmodeltype, Conversationmodel model: rcconversationmodel!, at indexpath:indexpath!)

{

//

}

(detail control) swift3.0 and cloud Imkit development issues (part) override Func Onselectedtablerow Method does not override all Method from its superclass

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.