2

Possible Duplicates:
Programatically access iPhone System Setting
How do I access the iPhone's settings from my code?
How to access iPhone general accessibility settings with OS 4.0
How to access iPhone's general accessibility settings
iPhone Settings
Access iphone setting preference

Is there a way to, from my code query the iOS settings app for a certain setting? For example I want to know if "Multitasking Gestures" is turned on or not? Or even be able to change the settings?(From my research it seems like I definitely cant do this)

Community
  • 1
  • 1
Henrik
  • 23
  • 1
  • 1
  • 3
  • @kaveman: What are you talking about? From the other question: "I want to be able to read the values a user has set in the built-in "Settings" app of the iPhone." This question: "Is there a way to, from my code query the iOS settings app for a certain setting?" That's only one of a handful at least -- Krishnabhadra links another. – jscs Sep 07 '11 at 03:40

1 Answers1

4

No. In general, you can read your own app's preferences (whether they're set via the Settings app or by your app) using NSUserDefaults. You cannot, however, read the preferences for other applications, including system settings. There may be cases where you can figure out what the setting must be by using API specific to that setting, but in such cases you still shouldn't assume that you know what selection the user has made in the Settings app.

Caleb
  • 124,013
  • 19
  • 183
  • 272