问题
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