I am wondering how it is possible to save NSMutableArray in an NSUserDefaults? I keep getting the following error.
Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Attempt to insert non-property list object (
"<Data: 0x7a1bf830>",
) for key dataList'
Here is my code
NSUserDefaults *myDefaults = [[NSUserDefaults alloc]
initWithSuiteName:@"group.sharingData"];
[myDefaults setObject:self.dataList forKey:@"dataList"];
[myDefaults synchronize];