从 iTunes 同步恢复 NSUserDefaults

发布于 2024-12-14 11:27:13 字数 71 浏览 2 评论 0原文

即使应用程序从设备中删除后,是否可以从最新的 iTunes 备份恢复 NSUserDefaults

Is it possible to restore NSUserDefaults from the latest iTunes backup even after the App is deleted from the device?

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

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

发布评论

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

评论(1

意犹 2024-12-21 11:27:14

是的。如果您在用户默认值中保存了值,这些值将在 iTunes 备份期间得到备份。如果您的设备从备份中恢复,则保存在那里的值也将恢复。

您需要从备份恢复到整个设备。仅恢复 1 个应用程序是不够的。希望这有帮助。

Yes. If you have values saved in the user defaults, those values will get backed up during iTunes backup. If your device is restored from backup, the values saved there will be restored.

You would need to restore from the backup to the entire device. Restoring just 1 app won't suffice. Hope this helps.

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