NSUserDefaults: Is it possible to get userDefaults from another app?

后端 未结 3 620
名媛妹妹
名媛妹妹 2021-01-18 02:14

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

3条回答
  •  长发绾君心
    2021-01-18 02:22

    In the iOS App Programming Guide, in the Security section you can read:

    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.

    That means that if you're not interested in jailbreaking, what you want to do is not possible.

提交回复
热议问题