Get Updates By E-mail 

Article Written By:
Johann Dowa

Tutorial: Using URL Schemes To Open The Settings App To A Specific Page In iOS 5

Something that I saw mentioned back when the iOS 5 sdk was in beta was that you could use custom URL schemes to open the settings app up to a specific page.

While this capability has carried over to the iOS 5 release this capability appears to still be undocumented by Apple.

Alex Curylo has created a useful little writeup on using these URL schemes for location services, twitter, and bluetooth settings:

Turn on Location Services?

[NSURL URLWithString:@”prefs:root=LOCATION_SERVICES”]];

Set up Twitter?

[NSURL URLWithString:@”prefs:root=TWITTER”]];

Hook up a Bluetooth device?

[NSURL URLWithString:@”prefs:root=General&path=Bluetooth”]];

And one commenter on Alex’s site also mentioned how to do it for your own app:

[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@”prefs:root=Apps&path=Your+App+Display+Name”]];

The url schemes also work just fine when linked in HTML for those browsing on their iOS devices.

Source: Alex Curylo

Submit A Resource

Have you created a useful tutorial, library or tool for iOS development that you would like to get in front of our 300,000+ monthly page views from iOS developers?

You can submit the url here.

The resources we feel will appeal to our readers the most will be posted on the front page.