In iPhone app, How to display values in console for user defaults when valueforKey is an ENUM?
Currently with the below code if I try to display in console then it crashes with no crash log in console.
NSLog(@"%@",[[NSUserDefaults standardUserDefaults] valueForKey:Enum]);
To fetch:
to save:
EDIT: got it, you crash because in NSLog you are using the wrong format:
try %i (to print integers) instead of %@ (used to print valid objective-c objects)