In my iOS app, I am trying to get and post data from a (RESTful) server. I think for that both RestKit and AFIncrementalStore are good candidates. However I also need to be able to save data offline and push it to the server when the app is online.
I am trying to understand which is a better framework to use for the application.
Also, from some of the online resources, it seems that using faulting on AFIncrementalStore could potentially cause the thread handling ManagedContext (usually the mainThread) to get stuck while furnishing the network request to get a property. Is it a big deal?
PS: Adding afnetworking tag since afincrementalstore tag is not available
AFIncrementalStore works within Core data, sending back to your Web service. It uses the relatively new API Apple provides called NSIncrementalStore.
RestKit works from outside Core Data, binding HTTP requests to Core Data loosely using the object mapping architecture RK provides.
Here are some pros & cons for both:
My final recommendation would be to take the time and try both. What I can confirm is you'll need to drop a bit more lines of code using AFIS, since it does not take you by the hand as much as RestKit, so it's really a matter of preference.
Hope this will help you make the right choice!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With