How to use AFIncrementalStore to binding with a NSManagedObject
Posted
by
Matrosov Alexander
on Stack Overflow
See other posts from Stack Overflow
or by Matrosov Alexander
Published on 2013-10-27T13:51:10Z
Indexed on
2013/11/05
21:54 UTC
Read the original article
Hit count: 246
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.
© Stack Overflow or respective owner