I write an array of Contacts objects to file like this
[NSKeyedArchiver archiveRootObject:listOfContactsToLay toFile:[self fPath]];
Contact class implements the corresponding protocol,
but it has an UIImage field and it’s not gonna encode or decode throwing an encode exception. how should I write UIImage field?
Short solution
source : http://iphonedevelopment.blogspot.com/2009/03/uiimage-and-nscoding.html