iphone - 本地存储还是 SQLite?

标签 iphone objective-c ios xcode sqlite

我正在开发我的应用程序,它可以让我在我的 iPhone 上存储我的在线 DVD 信息。只是想知道使用 localStorage 或 SQLite。另外,我将来会更新我的应用程序,我不想丢失我存储的数据。你建议我哪一个?!

干杯

最佳答案

my online DVD's information

可以是大信息,那就用core data或者sqlite。

Also I'm gonna update my app in the future and I dont want to loose my stored data

如果您在不删除旧版本的情况下进行更新,SQLite 数据将保留。这对 NSUserDefault 也同样有效。您可以将钥匙串(keychain)用于永久数据存储,但用于少量数据。在不了解您的要求的情况下不能说更多。

关于iphone - 本地存储还是 SQLite?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13047574/

相关文章:

ios - 线程 1 : EXC_BAD_INSTRUCTION

ios - fatal error : Index out of range when downloading data from the Internet

ios - malloc 错误 - 释放对象的校验和不正确 - 对象可能在释放后被修改

iphone - 在 iPhone 应用程序中向 PDF 文档添加按钮

iPhoneOS SDK - 从 View 中删除圆角(iPad 问题)

iphone - 使用 AVFoundation 进行视频录制

objective-c - 错误 : Couldn't materialize struct: Couldn't read eax

IOS - UITableViewCell 重叠 UITableViewCell

ios - PHImageManager 的方法 "requestImageDataForAsset"在 Swift 中导致崩溃

苹果手机 SDK :Can write data to plist on Simulator but can't do same thing at Device?