0

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

enter image description here

Muhammad Raza
  • 952
  • 7
  • 24

2 Answers2

0

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

 class func parseClassName() -> String {
        return "Dan"
    }
Kyle H
  • 921
  • 1
  • 8
  • 20
0

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"

}
Grace Huang
  • 5,355
  • 5
  • 30
  • 52