How do I get NSUserDefaults?
I have the following code
NSUserDefaults * def = [NSUserDefaults standard user default]; NSArray * prefs = [def arrayfork: @ "addedfav"]; FavList = [[NSMutableArray alloc] initWithArray: prefess]; If I try this
NSUserDefaults * def = [NSUserDefaults StandardUserDefaults]; Int tempInt = [def Object Faroeqi: @ "Junkfaves"]; Do I need to type typing?
You can use - [NSUserDefaults setInteger: forKey:] Value and - [NSUserDefaults integerForKey] to get it.
Comments
Post a Comment