Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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 better way of storing large data? Thanks in advance.

like image 237
tan Avatar asked Sep 21 '10 02:09

tan


1 Answers

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)

like image 139
vodkhang Avatar answered Sep 26 '22 01:09

vodkhang