How to jump into the System Settings from my application in iOS6? - ios5

Why can't I use syntax like
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:#"prefs://"]]
to jump into the System Settings from my application in iOS6 but I can in iOS5? Is there any official information about this (for example from developer.apple.com)? Thanks!

Related

how go to iphone settings from objective c for ios7

The following URL scheme does not work on iOS 7,
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:#"prefs:root=General:"]];
all url schemes to iOS settings are removed in iOS5.1 and greater versions (so urls like prefs:root=General&path=Network will no longer work)
It Is possible in ios 8 Now
if (&UIApplicationOpenSettingsURLString != NULL) {
NSURL *appSettings = [NSURL URLWithString:UIApplicationOpenSettingsURLString];
[[UIApplication sharedApplication] openURL:appSettings];
}
all url schemes are removed from ios latest version.your code will work on ios 5 but not on other ios i thing.
This URL scheme has been disabled by Apple in SDK 5.1. Its not possible without Jailbreak.
To answer your question: No, this is not possible in iOS 7.
As other pointed out, the URLScheme was removed in iOS 5, and another approach were added in iOS 8.
Also discussed here:
Open Settings app from another app programmatically in iPhone
It is possible now in iOS 8
Use the following for iOS 8:
if (&UIApplicationOpenSettingsURLString != NULL) {
NSURL *appSettings = [NSURL URLWithString:UIApplicationOpenSettingsURLString];
[[UIApplication sharedApplication] openURL:appSettings];
}

Open Settings.app When Button is Tapped in UIAlertView on iPhone SDK [duplicate]

This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
Opening the Settings app from another app
Is there a way to direct the user to the Settings.app whenever I show a UIAlertView prompt? This prompt alerts the user that his location services is turned off and I want the user to open the Settings.app when he taps the button inside my UIAlertView.
UPDATE: I'm looking for a similar code stated here:
How to launch myapplication settings tab in settings app from my application in ipad
iOS 8 and iOS 9
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:UIApplicationOpenSettingsURLString]];
There is no way to do this.
Because till now (11th Jan 2013) there is no url scheme available for settings app.
iOS 6
You can't do this on iOS 6.
iOS 5 and below (< iOS 5.1)
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:#"prefs:root=General"]];
Please refer this answer for more info Call the official *Settings* app from my app on iPhone

IOS: go to link in ios5 crash app

In my app I use this instruction in an ibaction to open safari and go to the link:
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:#"http://www.example.com"]];
but the problem is that in IOS 5 it don't work fine because it open safari and go to the link but when I return in the app I have only a black screen and the app don't run. why?
Where did you test your app? simulator or a real iPhone? The way you did is right. I have a similar app offer the browser open up thing, and it worked fine both on simulator 5.0 and iphone 4 running iOS 5.0
ok the problem is that that when I go to background I close a view with view.parentViewController dismissModalViewController ad in ios5 it don't work, now it work

Open iphone calendar app programmatically

I'd like to open the iphone calendar app programmatically from within my app. According to this post: How to open the iPhone calendar from within my app? it isn't possible (May 22 2010!). Maybe the ios sdk 4 or ios sdk 5 support such a feature?
It's not possible, except for using UIDocumentInteractionController with an .ical file, but that's pretty pointless as you could achieve the same (adding an event) by using Event Kit.
use this line to open ios calendar :
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:#"calshow://"]];

Launching the iPhone maps application from your own code

How to Launch the iPhone maps application from our own code
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:#"http://maps.google.com/maps"]];
I tried this code,but its coming in browser.Its not opening in the iPhones Default map app...
I want my code to display the iPhone default map app to come up after existing the application which is being run.
use MKmapView to show map in Application instead of launching the Browser.