Reputation: 33036
NSUserDefaults won't accept custom classes. So how can these objects be stored and retrieved?
Upvotes: 0
Views: 54
Reputation: 64428
You have to make your class implement the NSCoding protocol before it can be serialized in the user defaults.
See: Archives and Serializations Programing Guide
Upvotes: 3