Open aaggarw99 opened 7 years ago
Two possible solutions:
UserDefaults
. You could convert would have to use these in order to user UserDefaults
.NSKeyedArchiver
on you custom classes. It would be just as easy to save as using UserDefaults
NSData
and then you could save them to UserDefaults
. I would not recommend this.
Hello,
To my understanding, saving arrays of custom structs and classes into UserDefaults is not allowed. What's the best alternative to saving an array of structs so that it is remembered every time the app is reopened?
Thanks