ph1psG
ph1psG

Reputation: 738

What is the best method to store data on Apple Watch

I'm programming an App which needs to store data to files (or any non-volatile method). I also have to say NSUserDefaults is not a good idea for my case since I'm storing arrays of structs. I also tried storing it with C's fwrite() but this options seems very inefficient. So my questions is now: How can I efficiently store data to Apple Watch's storage with Swift

Upvotes: 0

Views: 1036

Answers (2)

Marcus S. Zarra
Marcus S. Zarra

Reputation: 46718

Apple's Core Data is the persistence engine of choice for complex data structures. It is integrated into Apple's other frameworks and is under active development and is mature.

Upvotes: 1

joern
joern

Reputation: 27620

You can use CoreData like you would in a iOS App. Or you could try Realm which I find a lot easier to use.

Upvotes: 0

Related Questions