How to push a JSQMessagesViewController correctly

别等时光非礼了梦想. 提交于 2019-12-05 07:55:35

I’m glad to hear it solved your issue!

The JSQMessagesViewController have two asset parameters, the senderId and the senderDisplayName. So you must set your senderId and display name.

In your current controller which is inherited by JSQMessagesViewController

you will need to do couple of things first add setup function

func setup() {
    self.senderId = "1234"
    self.senderDisplayName = "TEST"
}

and latter invoke that function from

override func viewDidLoad() {
    super.viewDidLoad()
    // Do any additional setup after loading the view, typically from a nib.
    self.setup()
}
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!