I'm trying to create a Chat system in my custom UIViewcontroller
. I want to know if somebody have an idea to do that with JSQMessagesViewController
. I want to add an JSQMessagesView
in a view of my VC.
Asked
Active
Viewed 410 times
1

Axe
- 6,285
- 3
- 31
- 38

Julien Levallois
- 131
- 1
- 2
- 5
2 Answers
0
From what you have here all you need to do is subclass the JSQMessagesView
and make sure your messages conform to the JSQMessageModel
.

Dan Leonard
- 3,325
- 1
- 20
- 32
0
My solution was to add a container view on storyboard and link that container view to a viewController that subclass JSQMessagesView. That way you can set the container view to the size or position you want and the chat will only load inside that container.
Note: If you need to pass some variables to the chat view or you need to do some task before it is initialize override prepareForSegue.
If you have doubts please let me know I will explain it clearly, but I think that you will get the idea :D

Noel Carcases
- 711
- 1
- 7
- 27