iPhone's NSUserdefaults is a database or plist

给你一囗甜甜゛ 提交于 2019-12-02 12:40:23

问题


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



来源:https://stackoverflow.com/questions/3178115/iphones-nsuserdefaults-is-a-database-or-plist

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!