IOS from app jump to system settings menu The writing method of each function item explains _ios

Source: Internet
Author: User

Skip to the WiFi interface in system settings
info Inside Set:
Add a URL types to the Info.plist in the project and set a URL schemes to Prefs, as shown in the following figure

Code:

Copy Code code as follows:

Nsurl *url = [Nsurl urlwithstring:@ "Prefs:root=wifi"];
if ([[[UIApplication sharedapplication] canopenurl:url])
{
[[UIApplication sharedapplication] openurl:url];
}

Positioning service
There are many apps in the locator service, and if the user turns off positioning, then we can prompt the user to open the location service in the app. Click to set interface settings, jump directly to the positioning Service settings interface. The code is as follows:

Copy Code code as follows:

Positioning Service Settings interface
Nsurl *url = [Nsurl urlwithstring:@ "prefs:root=location_services"];
if ([[[UIApplication sharedapplication] canopenurl:url])
{
[[UIApplication sharedapplication] openurl:url];
}

This allows you to jump to the system settings of the positioning service Interface!

FaceTime

Copy Code code as follows:

FaceTime Settings interface
Nsurl *url = [Nsurl urlwithstring:@ "Prefs:root=facetime"];
if ([[[UIApplication sharedapplication] canopenurl:url])
{
[[UIApplication sharedapplication] openurl:url];
}

Music

Copy Code code as follows:

Music Settings interface
Nsurl *url = [Nsurl urlwithstring:@ "Prefs:root=music"];
if ([[[UIApplication sharedapplication] canopenurl:url])
{
[[UIApplication sharedapplication] openurl:url];
}

Wallpaper Setup Interface

Copy Code code as follows:

Wallpaper Setup Interface
Nsurl *url = [Nsurl urlwithstring:@ "Prefs:root=wallpaper"];
if ([[[UIApplication sharedapplication] canopenurl:url])
{
[[UIApplication sharedapplication] openurl:url];
}

Bluetooth Settings interface

Copy Code code as follows:

Bluetooth Settings interface
Nsurl *url = [Nsurl urlwithstring:@ "Prefs:root=bluetooth"];
if ([[[UIApplication sharedapplication] canopenurl:url])
{
[[UIApplication sharedapplication] openurl:url];
}

icloud Settings interface

Copy Code code as follows:

icloud Settings interface
Nsurl *url = [Nsurl urlwithstring:@ "Prefs:root=castle"];
if ([[UIApplication sharedapplication] Canopenurl:url]
{
[[UIApplication sharedapplication] openurl:url];
}

Parameter configuration
See these examples, we have not found, want to jump to which settings interface only need to prefs:root= after the value can! Yes, that's the way it is.
I find a list on the Internet that can jump to the parameters configuration of these interfaces:

About-prefs:root=general&path=about accessibility-prefs:root=general&path=accessibility Airplane Mode on-p Refs:root=airplane_mode Auto-lock-prefs:root=general&path=autolock brightness-prefs:root=brightness Bluetooth -prefs:root=general&path=bluetooth Date & time-prefs:root=general&path=date_and_time facetime-prefs:
Root=facetime general-prefs:root=general Keyboard-prefs:root=general&path=keyboard Icloud-prefs:root=castle ICloud Storage & Backup-prefs:root=castle&path=storage_and_backup international-prefs:root=general& Path=international Location services-prefs:root=location_services music-prefs:root=music Music equalizer-prefs:root =music&path=eq MUSIC Volume limit-prefs:root=music&path=volumelimit network-prefs:root=general&path= Network Nike + ipod-prefs:root=nike_plus_ipod notes-prefs:root=notes notification-prefs:root=notifications_id Phone -prefs:root=phone Photos-prefs:root=photos profilE-prefs:root=general&path=managedconfigurationlist Reset-prefs:root=general&path=reset Safari-prefs:root =safari siri-prefs:root=general&path=assistant sounds-prefs:root=sounds Software update-prefs:root=general &path=software_update_link Store-prefs:root=store Twitter-prefs:root=twitter usage-prefs:root=general&
 Path=usage Vpn-prefs:root=general&path=network/vpn Wallpaper-prefs:root=wallpaper Wi-fi-prefs:root=wifi

You can jump to a different setup interface according to your needs. If you like this article, welcome to share more friends, can also be collected, in case of a rainy!

Related Article

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.