ios - NSFetchedResultsController and WebService -


i using core data local cache web service. while fetching data, want first check if data exists in core data , if does, show it(and save network call) , if not ,request web service it, , add core data.

nsfetchedresults controller, out of box , directly talks core data. possible kind of check ?

i have set of data entities either synced, or unsynced( plan store sync/unsync flag in nsuserdefaults). when view loaded,say list view, if flag synced, web request not required.

if flag false, web service should called.

nsfetchedresultscontroller won't this. talks core data, , there's no option have automatically checks. you'll have checks somewhere else, , call web service there.


Comments

Popular posts from this blog

jOOQ update returning clause with Oracle -

java - Warning equals/hashCode on @Data annotation lombok with inheritance -

java - BasicPathUsageException: Cannot join to attribute of basic type -