Best way to save to nsuserdefaults for custom class?
- by cannyboy
If I have a custom class Person which has three variables (which are propertized and synthesized):
NSString* theName;
float* theHeight;
int theAge;
Person instances are stored in an NSArray 'Group'. There is only one Group. What is the best way of string and loading the Group in NSUserDefaults? (bearing in mind that float and int are not legal for NSUserDefaults)