Top "Nsuserdefaults" questions

NSUserDefaults is the Objective-C API for storing and retrieving user preferences in Apple's Foundation framework for Cocoa and Cocoa Touch.

What is the use of -[NSUserDefaults registerDefaults:]?

What is the difference between: [[NSUserDefaults standardUserDefaults] registerDefaults: [NSDictionary dictionaryWithObjectAndKey:anObject, @"something"]]; And this: [[NSUserDefaults standardUserDefaults] setObject:anObject forKey:@"something"];

iphone cocoa-touch nsuserdefaults
iPhone - How to detect if a key exists in NSUserDefaults standardUserDefaults

Using NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];, I use calls like BOOL boolFromPrefs = [defaults boolForKey:@"theBoolKey"]; To get a saved BOOL value. …

iphone cocoa-touch nsuserdefaults preferences key-value
Swift: Insert Alert Box with Text Input (and Store Text Input )

In one of my viewController, I want to make an alert box appear that prompts the user to type this …

swift uialertview nsuserdefaults
Simple persistent storage in Swift

I have an array of objects each with a number of properties. Here is some sample data taken by looping …

arrays swift nsuserdefaults nskeyedarchiver persistent-storage
How to retrieve values from settings.bundle in Objective-c/Swift?

I have created a project that set and retrieve values from settings.bundle. I have also set some defaults values …

objective-c swift iphone nsuserdefaults application-settings
Passing Data from App delegate to View Controller

I need to Pass an string from App delegate to my Initial View Controller , Can somebody listed me the best …

ios objective-c nsuserdefaults
NSUserDefaults Contains Value Or Not?

How to know whether NSUserDefaults contains any value?How to check whether its empty?

ios cocoa-touch nsuserdefaults
How to set initial values for NSUserDefault Keys?

I want to set some initial values for my NSUserDefault keys so that the first run of the app has …

ios plist nsuserdefaults user-experience
Detect changes on NSUserDefaults

I'm developing an iOS application with latest SDK. I want to know when a property on NSUserDefaults changes it value. …

ios objective-c nsuserdefaults
NSMutableDictionary: mutating method sent to immutable object

The following code is returning an exception with the following error message "mutating method sent to immutable object" when attempting …

ios objective-c nsuserdefaults nsmutabledictionary mutable