I am not able to get NSUserDefaults concepts properly. Is that a database of plist file ?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
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.
回答2:
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