-(void)transformObjects:(NSMutableArray*)array key:(NSString*)key
{
NSMutableArray* archiveArray = [[NSMutableArray alloc]initWithCapacity:array.count];
for
You have a custom class Furniture
which you are trying to archive with NSKeyedArchiver
. In order for this to work, the Furniture
class needs to conform to the < NSCoding >
protocol. Which means implementing the encodeWithCoder:
and initWithCoder:
methods.
Currently you don't implement these methods. You need to add them.