简体   繁体   中英

JSQMessagesViewController in Swift with Xcode 6.3 Objective-C Selector issue

I am using JSQMessagesViewController in swift with Xcode 6.3 Any one know about this error? how to solve this?

在此处输入图片说明

Declare this as a Type function by using class func as such:

 class func parseClassName() -> String {
        return "Dan"
    }

I think you should assign the values of both senderId and senderDisplayName in the viewDidLoad(), instead of methods.

override func viewDidLoad() {
    super.viewDidLoad()

    self.senderId = "YOUR_SENDER_ID"
    self.senderDisplayName = "YOUR_DISPLAY_NAME"

}

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM