3 ms·
Ahh, that app doesn't actually use any web services other than for the in-app purchasing. The numbers that are calculated are from direct user input, but the t
by markrickert 15y ago
Ahh, that app doesn't actually use any web services other than for the in-app purchasing.
The numbers that are calculated are from direct user input, but the things that are stored like shipping and tax rates are stored using NSUserDefaults.
Caching data locally is fairly easy... just put the downloaded JSON file into the application's sandboxed /Documents folder for easy retrieval later.
- signalsignal 15y agoAh-ha! I just assumed the "Your Items" list was saved, but it obviously isn't. I write my apps to saved the input lists. My assumption is that the user wants to preserve the list items for future usage. Maybe it is more than needs to be done.
- markrickert 15y agoI am in fact saving the list so the user can have history of what was entered and then they can name the transaction, duplicate and restore transactions. I'm just using JSON to save the history. I tested up to 100k records and didn't see a slow-down in performance so to deter me from doing it that way. Best possible solution in a perfect world? No. Works? yes. Works well? Yes.