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)
精彩评论