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.