开发者

Where to store data in iphone?

I'm doing an app which needs to store large data. Just like find out what is best way to do it. Where should i store it? in document folder? or in caches folder? or there a 开发者_如何学JAVAbetter way of storing large data? Thanks in advance.


It depends on the structure and the type of your data. If you have a relational data structure then you may consider SQlite or CoreData, if you have an intensive Object-Oriented data, then you should consider Core Data. It also depends on your skills with SQL and ORM frameworks when CoreData is higher level and use SQLite.

If your data is images, then you can store in /Library folder of your application. If your data is JSON-like format, then you can store in plist file (which can also be in /Library folder)

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜