Best way to save data on the iPhone

前端 未结 7 523
一向
一向 2020-11-28 03:59

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 applicatio

相关标签:
7条回答
  • 2020-11-28 05:05

    The most common way to save state (data, application information etc) is to use Sqlite3. I'm not sure how an update would wipe it, but it's possible that the update process could overwrite the datafile.

    The other option would be to use UserPrefs (NSUserDefaults). Again, I'm not sure the max size for that, or even if it would be suitable for the data you need to persist.

    0 讨论(0)
提交回复
热议问题