ios - NSUserDefaults:是否可以从另一个应用程序获取 userDefaults?

标签 ios nsuserdefaults

iPhone 上安装了两个应用程序(myApp 和 competitorApp)。competitorApp 正在使用 NSUserDefaults 保存用户设置。我知道所有使用 competitorApp 的键(key 的值)。是否可以从 competitorApp 获取 myApp 中的值?

最佳答案

在 iOS 应用程序编程指南中,in the Security section你可以阅读:

For security reasons, iOS places each app (including its preferences and data) in a sandbox at install time. A sandbox is a set of fine-grained controls that limit the app’s access to files, preferences, network resources, hardware, and so on. As part of the sandboxing process, the system installs each app in its own sandbox directory, which acts as the home for the app and its data.

这意味着如果你对越狱不感兴趣,你想做的事是不可能的。

关于ios - NSUserDefaults:是否可以从另一个应用程序获取 userDefaults?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8939228/

相关文章:

iphone - 如何使用 NSUserDefaults 更新 key 的数据

ios - 在 viewDidLoad() 中访问 UserDefaults

ios - 如何保持一共得到了多少分

IOS - UITableViewCell 重叠 UITableViewCell

iphone - 有没有比使用 plist 保存应用内购买更安全的解决方案?

ios - TestFlight 将每个版本限制为特定用户

ios - 如何跟踪 AVAudioFoundation 中的循环次数

iphone - 用户默认值/KeyedArchiver 挫败感

ios - 如何以编程方式访问 Assets 目录颜色集

iphone - 在 Objective-C 和 iOS 中合并项目范围定义的最佳实践