Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 2017-02-21 16:40:40.599 Jaco[52613:2864859] *** Assertion failure in -[Jaco.ChatViewController collectionView:messageDataForItemAtIndexPath:], /Users/Royal/dev/jab/ios/Pods/JSQMessagesViewController/JSQMessagesViewController/Controllers/JSQMessagesViewController.m:491
- 2017-02-21 16:40:40.609 Jaco[52613:2864859] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'ERROR: required method not implemented: -[JSQMessagesViewController collectionView:messageDataForItemAtIndexPath:]'
- // DATA SOURCE 1
- func collectionView(collectionView: JSQMessagesCollectionView!,
- messageDataForItemAtIndexPath indexPath: NSIndexPath!) -> JSQMessageData! {
- let data = self.messages[indexPath.item]
- return data
- }
- // DATA SOURCE 2
- override func collectionView(_ collectionView: UICollectionView,
- numberOfItemsInSection section: Int) -> Int {
- return messages.count
- }
- func collectionView(collectionView: JSQMessagesCollectionView
- func collectionView(_ collectionView: JSQMessagesCollectionView
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement