I would like to store some custom objects in an NSMutableArray, then store this NSMutableArray to NSUserDefaults. The custom objects look like this:
@interface myCustomClass:NSObject
{
NSString *string1;
NSString *string2;
NSArray *array;
NSURL *URL;
}
@end
I've checked the development documentations and learned that NSUserDefaults only supports some types such as NSData, NSDate, NSString, NSArray, NSDictionary. I have searched the answer to my question for a while but haven't got a solution. Would anyone please let me know how could I save my custom objects listed above to NSMutableArray then store this array to NSUserDefaults, and how to retrieve this mutable array? Thanks a lot in advance.