在iphone上存储数据的最佳方式 [英] Best way to store data on iphone

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

问题描述

我正在为iphone创建一个问答应用程序,允许用户回答显示的问题。

I am creating a Questions and answers app for iphone which allows user to answer the questions displayed.

目前我正在调用一个Web服务来存储用户的答案。但我有点担心如果Web服务出现问题。我需要在本地存储用户答案,然后在Web服务启动并运行时调用它。

Currently I am invoking a web service to store the users answers. But I am slightly worried what if the web service goes down. I need to store the users answers locally and then invoke the web service when it is up and running.

如何在Web服务关闭时存储用户答案。 Sqllite是一个很好的选择吗?

How can I store the users answers when the web service is down. Is Sqllite a good option for this?

请建议。

谢谢,

推荐答案


Sqllite是一个不错的选择吗?

Is Sqllite a good option for this?

是的,SQLite绝对是一个不错的选择。另一种选择是核心数据。

Yes, SQLite is decidedly a good option. The other choice would be Core Data.

在iPhone上使用CoreData或SQLite?

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

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