从 iTunes 同步恢复 NSUserDefaults
即使应用程序从设备中删除后,是否可以从最新的 iTunes 备份恢复 NSUserDefaults
?
Is it possible to restore NSUserDefaults
from the latest iTunes backup even after the App is deleted from the device?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
是的。如果您在用户默认值中保存了值,这些值将在 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.