NSUserDefaults 在哪里存储信息?

发布于 2025-01-05 03:00:34 字数 90 浏览 4 评论 0原文

有谁知道 NSUserDefaults 在哪里/如何存储持久性信息? 我只是好奇这在幕后是如何工作的。

我也想知道是否可以手动重置它,但那是次要的..

Does anyone know where/how does NSUserDefaults store the information for persistence?
I'm just curious about how this works under the hood.

Also I'm wondering if I can manually reset it, but thats secondary..

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

分开我的手 2025-01-12 03:00:34

用户默认值保存在(模拟器 5.0)

Users/username/Library/Application Support/iPhone Simulator/5.0/Applications/your app unique id/Library/com.appname

此数据以 plist 格式保存。

Userdefaults are persisted at (Simulator 5.0)

Users/username/Library/Application Support/iPhone Simulator/5.0/Applications/your app unique id/Library/com.appname

This data is persisted as plist format.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文