gpt4 book ai didi

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

转载 作者:可可西里 更新时间:2023-11-01 03:26:46 26 4
gpt4 key购买 nike

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/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com