NSUserDefaults:是否可以从另一个应用程序获取 userDefaults?
iPhone 上安装了两个应用程序(myApp 和竞争者应用程序)。竞争者应用程序正在使用 NSUserDefaults 保存用户设置。我知道使用竞争对手应用程序的所有键(键的值)。是否可以从竞争对手应用程序中获取 myApp 中的值?
There are two apps installed on iPhone (myApp and competitorApp).competitorApp is saving user settings with using NSUserDefaults. I know all keys (value forKey) which using competitorApp. Is it possible to get values in myApp from competitorApp?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
在 iOS 应用程序编程指南中,在安全部分,您可以阅读:
这意味着如果您对越狱不感兴趣,您想做的事情是不可能的。
In the iOS App Programming Guide, in the Security section you can read:
That means that if you're not interested in jailbreaking, what you want to do is not possible.
不可以。应用程序无法访问彼此的用户默认设置,也无法查看彼此的文件系统沙箱。这是按设计工作的安全性。
No. Apps cannot access each other's user defaults, nor look inside each other's file system sandboxes. This is security working as designed.
越狱..更好的解决方案将用户默认值保存在某些服务器上,然后在另一个应用程序中下载。否则不可能
Jailbreak.. Better solution to save userdefaults values on some server and then download it in another app. Not possible otherwise