NSUserDefaults is the Objective-C API for storing and retrieving user preferences in Apple's Foundation framework for Cocoa and Cocoa Touch.
Which is the place I should be storing tokens for when the user logins in to a service? I'm not …
ios objective-c api nsuserdefaults keychainI am making a basic quiz application.The choices are in the form of a table view. If the user …
ios swift nsuserdefaults nsindexpathIs this the case? Do NSUserDefaults get reset when you submit an update to an app on the App Store, …
iphone crash nsuserdefaultsI have the following two procedures defined in my AppDelegate. saveSettings and loadSettings. I am calling my loadSettings procedure in …
ios settings nsuserdefaultsI have an AppDelegate class with +(void)initialize method that I use to register some defaults. Here's the code that …
cocoa nsuserdefaults user-preferencesWhat's the easiest way to save a UIColor into NSUserDefaults and then get it back out?
objective-c cocoa-touch nsuserdefaults uicolorHow can I auto clear the nsuserdefault values in swift? I have already tried this but it doesn't work for …
swift swift2 nsuserdefaultsI have the following test code: func testSaveDictionary() { let userDefaults = NSUserDefaults.standardUserDefaults() var jo = [ "a" : "1.0", "b" : "2.0" ] let akey = "aKey" userDefaults.…
dictionary swift nsuserdefaultsI'm trying to pass the boolean value of a UISwitch to another class using NSUserDefaults. For some reason, in the …
xcode swift nsuserdefaultsNSUserDefaults has integerForKey:, setInteger:forKey: and stringForKey:, but does not have setString:forKey:. How do you set a string to …
ios swift nsuserdefaults