How do I retrieve an int from NSUserDefaults?
I have the following code
NSUserDefaults *def = [NSUserDefaults standardUserDefaults];
NSArray *prefs = [def arrayForKey:@"addedFavs"];
favList = [[NSMutableArray alloc] initWithArray:prefs];
If I try this
NSUserDefaults *def = [NSUserDefaults standardUserDefaults];
int tempInt = [def objectForKey:@"addedFavs"];
will I not need to do type casting?