Advertisement
Guest User

Untitled

a guest
Sep 27th, 2016
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. if query.hasCachedResult{
  2. query.cachePolicy = .cacheThenNetwork
  3. } else{
  4. query.cachePolicy = .networkOnly
  5. }
  6.  
  7. self.messages.removeAll()
  8. self.users.removeAll()
  9.  
  10. override func collectionView(_ collectionView: JSQMessagesCollectionView!,
  11. messageDataForItemAt indexPath: IndexPath!) -> JSQMessageData! {
  12.  
  13. return self.messages[indexPath.item]
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement