App jump to System settings

Source: Internet
Author: User

Many famous and non-famous apps have the ability to jump to the system settings in some way within the app. But iOS5.1 after the normal call, after the die, I summed up the following two ways:
method One:

In fact, a little bit of Baidu you can find the following list.

Notification — prefs:root=NOTIFICATI_IDPhone — prefs:root=PhonePhotos — prefs:root=PhotosProfile — prefs:root=General&path=ManagedConfigurationListReset — prefs:root=General&path=ResetSafari — prefs:root=SafariSiri — prefs:root=General&path=AssistantSounds — prefs:root=SoundsSoftware Update — prefs:root=General&path=SOFTWARE_UPDATE_LINKStore — prefs:root=STORETwitter — prefs:root=TWITTERUsage — prefs:root=General&path=USAGEVPN — prefs:root=General&path=Network/VPNWallpaper — prefs:root=WallpaperWi-Fi — prefs:root=WIFI

Yes, I will refer to this call next:

[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"prefs:root=WIFI"]];

This can really jump in ios6,7 and 8, just one less step.


1.png

Add a new item in the URL Types . I did not study in depth, only fill in prefs on it.


2.png

This way, the above-mentioned method can be jumped.

Unless it is a last resort, you can use the following call, if you choose: (even if you read the extension)

IOS8 New support:

[[UIApplication sharedApplication] openURL:[NSURL URLWithString:UIApplicationOpenSettingsURLString]];

Method Two:

or use [[UIApplication sharedapplication] openurl:[nsurl urlwithstring:@ "Prefs:root=wifi"];
But only available in Alertview.


App jump to System settings

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.