Best way to save data on the iPhone

前端 未结 7 566
一向
一向 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 04:53

    for small amounts of data NSUserDefaults is a perfect solution, if you need ad hoc querying of data sqlite is the way to go. Those two solutions are perfect for storing data on the device, if you need more flexibility and capability you could consider remote data i.e web services and a server database.

提交回复
热议问题