I have a question about NSKeyedUnarchiver, NSMutableArray and self-created classes. The data is stored by NSKeyedArchiver to user defaults. When the data load into the user defaults will be printed to the console of the data stream. I want to unpack the data into an array, the array will be empty.
Maybe someone of you knows how I save the array or the array load.
Thank you.
Greetings,
Schumi
You should go through
this documentationfirst. But basically, To enable archiving on custom class objects you will have to adopt theNSCodingprotocol and implementinitWithCoder:andencodeWithCoder:methods.