开发者

Core Data or Sqlite in my Project?

I'm trying to develop one iPhone App like the Recipes example of Apple, but开发者_开发知识库 I have one question? I want to show data that I have stored in a database, but I don't want user to add data or edit this information. I only want to show the data in a table view like name, description, image, etc. What's the best option? Core Data (and how I add the data) or Sqlite data base?

Thanks for all.

Jordi


For such a simple use case, use Core Data. It is higher level, significantly easier to code for (no, really, it is), and the documentation is quite thorough, both from Apple and from third parties.


It almost sounds like you don't need a database at all. If the data is static and not very complex, one alternative would be to create a plist as part of your application bundle, and read that plist into an ‘NSArray‘ or ‘NSDictionary‘ using the technique in this question: Plist Array to NSDictionary

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜