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.

Why is NSUserDefaults used in iOS?

I am new to iOS development and Mobile app development in general, I have decent knowledge about Objective C and …

ios objective-c nsuserdefaults
-[_SwiftValue encodeWithCoder:]: unrecognized selector sent to instance

Getting error when trying to utilize NSCoder Player.swift: class Player: NSObject, NSCoding { private var _playerName: String! private var _playerScore: …

ios swift nsuserdefaults swift3 nscoder
NSUserDefaults reset

Possible Duplicate: How can I reset the NSUserDefaults data in the iPhone simulator? Can we reset NSUserDefaults for all the …

iphone nsuserdefaults reset
Passing data to Apple Watch app

I am trying to pass data from my app into my Apple Watch app. Basically, I am using the same …

ios swift nsuserdefaults watchkit apple-watch
NSUserDefaults Unreliable in iOS 8

I have an app that uses [NSUserDefaults standardUserDefaults] to store session information. Generally, this information is checked on app launch, …

ios objective-c ios8 nsuserdefaults
Storing data to NSUserDefaults

In my iPhone app, I have a class called Contact which consists of an ABRecordRef to serve as a reference …

iphone ios ipad nsuserdefaults abrecordref
[NSKeyedUnarchiver initForReadingWithData:]: data is NULL

Among the settings that I am saving to NSUserDefaults is a non-mandatory object that doesn't make sense to have an …

ios objective-c nsuserdefaults
insert object in an NSMutableArray saved with NSUserDefaults

I have an NSMutableArray saved with NSUserDefaults. This array is my "favourite" items that the user can saves, so when …

iphone nsmutablearray nsuserdefaults
What are the limitations of NSUserDefaults?

Storing data permanently in an iPhone is usually done using Core Data or sqlite3. Most people prefer to user NSUserDefaults …

iphone objective-c core-data nsuserdefaults
Setting bundle default value won't set

I have an iOS application with a settings.bundle that handles various settings for my application with Switch toggle. I …

ios objective-c nsuserdefaults settings.bundle