How to use AFIncrementalStore to binding with a NSManagedObject
- by Matrosov Alexander
I am searching for more information on how to use AFIncrementalStore. I need to know how to implement it step by step. Please don't down vote it, because of many resources, I really need help with this.
If I understood right AFIncrementalStore it is a layer for fetching data from the server and for the mapping data model. Am I right?
So I have few URL that I need to mapping into my local model. All of them use GET requests.
For example base_url/api/categories
I get this string in response:
[{"category":{"name":"3d max","id":"1111001","users":[]}},
{"category":{"name":"photoshop","id":"1111002","users":[]}},
{"category":{"name":"auto cad","id":"1111003","users":[]}}]
So I have a question how I can binding my local db with this data using AFIncrementalStore. Also if you can see there are relationships in the response string that are connected to uses. The array for users will contain id that is correspond to concert users. So I think second question is how to point that model has to have relationship.