views:

28

answers:

1

NSUserDefaults won't accept custom classes. So how can these objects be stored and retrieved?

+3  A: 

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

TechZen