Reputation: 419
I'm building an app with iOS Swift and I'm new in this domain.
I require some contents to be available while offline, like user details, their current score, their photos etc. I wanted to know what can I use for local storage; Shall I use SQLite DB or NSUserDefaults or are there any other options available? I'll be using MySQL for remote server.
Appreciate any information.
Upvotes: 0
Views: 659
Reputation: 6342
You have three options :
Storing large amount of data in NSUserDefaults
is not a good idea.
Storing in SQLite is a good option.
Storing in CoreData is a perfect option.
Storing as plist file is a easy option.
Upvotes: 1