I am writing an iOS app that uses data provided by a web service. I use basic data for local data storage and storage, so some basic data set is available to the user if the network is not available.
When creating this application, I read a lot of posts about basic data. Although there seems to be a lot of this on the mechanics, I have seen fewer general principles / patterns for this.
I am wondering if there are good recommendations for a recommended interaction model.
For example, the user will be able to create new objects in the application. Suppose the user creates a new employee object, the user usually creates it, updates it, and then saves it. I saw recommendations that update each of these steps on the server → when the user creates it, when the user makes changes to the fields. And if the user cancels at the end, a deletion is sent to the server. Another recommendation for the same operation is to save everything locally and only send a full update to the server when the user saves.
In this example, I am wondering if there are any general recommendations / patterns on how to handle CRUD operations and ensure their synchronization between the web server and coredata.
Many thanks.
design-patterns iphone web-services core-data
Yenyi
source share