thndrkiss
thndrkiss

Reputation: 4595

iPhone's NSUserdefaults is a database or plist

I am not able to get NSUserDefaults concepts properly. Is that a database of plist file ?

Upvotes: 1

Views: 349

Answers (2)

Stephen Darlington
Stephen Darlington

Reputation: 52565

It's a key-value store that is persisted between restarts of your application. How it's implemented has little bearing on how you use it.

Upvotes: 2

HerrVoennchen
HerrVoennchen

Reputation: 351

I don't know if it's different on the iPhone OS (which i don't believe) but in Mac OS X is it a plist file in your Library/Preferences folder. Pretty sure it's the same on iPhone OS/iOS

Upvotes: 0

Related Questions