Closed RonGafni closed 8 years ago
I would recommend going back to the last state that worked and look at what has changed.
And another question, how can I work with core data?
You use documentWasAdded, documentWasChanged and documentWasRemoved to add, update and remove your documents in Core Data. In other words, override those methods and write your own that add the document to Core Data each time a document is added, update it, etc.
Oh, thanks!
Can you give me example?
Core Data is a complex topic. If you've never used it, you'll need to spend some time with it first.
There is an example here: https://github.com/siegesmund/SwiftTodos.
Hey,
I don't know how but suddenly two of me 3 collection is not working.
Collection: Users, conversations, contacts
With "Users" Collection there is no problem but with conversations and contacts is always "0 element".
NSNotificationCenter.defaultCenter().addObserver(self, selector: #selector(GOChatMessagesTableViewController.collectionDidUpdate), name: METEOR_COLLECTION_SET_DID_CHANGE, object: nil)
`
Few days ago everything goes well, but know I don't know what the problem..
Even when I try to crash the app by changing the Conversations MeteorDocument and delete one field its not even crash. What can I do?
Thanks!!