the situation is here: I use JsonModel to convert json to model when I get data from API, it's pretty good.
and I have to do persistent storage for some data, I finally choose NSKeyedArchive and NSKeyedUnarchive to save and fetch data. now comes the point, the JsonModel has already conform to NSCoding, so I don't need to write the code to apply the NSCoding. I archive and unarchive some basic data, it works well.
but there is a UIImage property in a data model ,when I archive the data model, the problem comes, the archive does not complete. (it seems the JsonModel does not support UIImage coding???)
when it throw out ,the code comes to
@throw [NSException exceptionWithName:@"Value transformer not found"
reason:[NSString stringWithFormat:@"[JSONValueTransformer %@] not found", selectorName]
userInfo:nil];
so any body knows what should i do to solve the problem?
thanks ahead!