JSQMessagesViewController in Swift with Xcode 6.3 Objective-C Selector issue

北慕城南 提交于 2019-12-12 03:35:14

问题


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


回答1:


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

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



回答2:


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"

}


来源:https://stackoverflow.com/questions/31153071/jsqmessagesviewcontroller-in-swift-with-xcode-6-3-objective-c-selector-issue

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!