iPhone's NSUserdefaults is a database or plist

后端 未结 2 1290
借酒劲吻你
借酒劲吻你 2021-01-23 17:30

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

相关标签:
2条回答
  • 2021-01-23 17:43

    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

    0 讨论(0)
  • 2021-01-23 17:54

    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.

    0 讨论(0)
提交回复
热议问题