在iPhone上本地存储数据 [英] Storing data locally on iPhone

查看:195
本文介绍了在iPhone上本地存储数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个iOS应用程序,这是我的毕业项目..该应用程序应该作为一个社交网络,用户可以连接到其他用户。从数据的角度来看,应用程序需要在本地存储一些数据,并且它还能够使用远程服务器更新这些数据,即本地数据是位于服务器上的数据子集的快照。



假设用户最多可以连接到100个其他用户,他/她也可以看到他们的信息,这些信息是:文本和小图片每个连接的用户。



我想知道什么是最有效的方法来存储这些数据,我看过:




  • plists

  • NSUserDefault

  • SQLite3

  • li>
  • 核心数据。



但无法决定哪种方法适合我的应用程序。 p>

提前感谢。

解决方案

SQLite ...但我们没有你的应用程序的所有细节,因此,我可以错了。


I'm developing an iOS app, which is my graduation project.. the app is supposed to serve as a social network, where the user could connect to other users. From the data perspective the app needs to store some data locally, and it also have the ability to update these data with a remote server, i.e. the local data are snapshots of a subset of the data that located on the server..

Let's say that the user is able to connect to at most 100 other users, and he/she is also able to see their information, and these info are : textual and small images about each connected user.

I'm wondering what's the most efficient approach to store these data, I've looked at :

  • plists
  • NSUserDefault
  • SQLite3
  • Archiving
  • Core Data.

But couldn't decide which approach is suitable for my app.

Thanks in advance.

解决方案

I would go with CoreData & SQLite ... But we haven't all details of your application, thus, I can be wrong.

这篇关于在iPhone上本地存储数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆