I am writing an iPhone application, and need to save the state of my application (5K or so).
My main worry is data persisting across upgrades. Some of the applications I use clearly got this wrong, and I would prefer not to!
Streaming video and music typically use the most mobile data in the shortest amount of time. It's important, therefore, to limit your use of video streaming apps like YouTube, TikTok, and Netflix when you're on Wi-Fi.
Play Low-quality Music and Videos. Playing high quality music and videos consumes a large amount of data. Maybe that is why is Facebook using so much data on my iPhone. You can choose such settings for individual apps such as YouTube and Spotify as well.
To save state, NSUserDefaults is the way to go. I believe most, if not all, instances of application data being deleted after an upgrade are due to issues on the AppStore. They may be related to data-format changes, but if you use just NSUserDefaults and standard plist-storable objects (NSString, NSDictionary, NSNumber, NSArray, NSNumber, and primitives), you should be safe.
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