I need to encode an array containing multiple instances of a custom NSObject class. However, upon doing so, it returns a crash with message :
-[Person encodeWithCoder:]: unrecognized selector sent to instance 0x8ff2c50
the class contains multiple properties and to store them as a collection is the purpose of the class.
the encoder method upon which it crashes is such:
- (void)encodeWithCoder:(NSCoder *)encoder
{
[encoder encodeObject:_arrayOfPeople forKey:@"DataStoragePeopleArray"];
}