I am trying to store an object of NSObject Class using file archiving. When i tried
[NSKeyedArchiver archiveRootObject:myObject toFile:@"filePath"];
and
NSArray *myArray=@[myObject];
[NSKeyedArchiver archiveRootObject:myObject toFile:@"FilePath"];
But both returns warning !!
* Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[ePub encodeWithCoder:]: unrecognized selector sent to instance 0xeac3570'