2

What does the iOS SDK provide in terms of programmatic access to the device's settings (usually accessed via the Settings app)?

After reading through Apple's Preferences and Settings documentation I'm not sure if an app can programmatically adjust the device's brightness or perhaps toggle wifi on/off. I'm experimenting with NSUserDefaults right now. Any help or advice is appreciated.

MrDatabase
  • 43,245
  • 41
  • 111
  • 153

2 Answers2

3

Yes, for some settings, by using a private API you can access them. However, apparently, using these private API's prevents your app from being accepted into the app store. A Link: Access iOS settings from code Hope this helped! ^_^

Community
  • 1
  • 1
waylonion
  • 6,866
  • 8
  • 51
  • 92
  • Interesting, thanks. Apparently some apps just modify the appropriate plist files http://stackoverflow.com/a/1335316/22471 – MrDatabase Apr 23 '12 at 20:15
1

Apple's official public APIs do not allow an iOS app to access General settings in the Settings app, such as the wifi enable. NSUserDefaults only allows access to those preferences and settings created specifically by that one app for its own use.

hotpaw2
  • 70,107
  • 14
  • 90
  • 153
  • I see. Are apps that mess around w/ plists in `Library/Preferences` usually rejected? Sounds like some fairly popular apps are doing this (stackoverflow.com/a/1335316/22471) – MrDatabase Apr 24 '12 at 01:52