Guru
Guru

Reputation: 419

iOS Swift - Offline Availability

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

Answers (1)

Nirav Gadhiya
Nirav Gadhiya

Reputation: 6342

You have three options :

  1. Storing large amount of data in NSUserDefaults is not a good idea.

  2. Storing in SQLite is a good option.

  3. Storing in CoreData is a perfect option.

  4. Storing as plist file is a easy option.

Upvotes: 1

Related Questions