iOS in-app jump system settings related interface

Source: Internet
Author: User

In iOS development, sometimes there is a need to jump system setup interface, such as prompting users to turn on Bluetooth or WiFi, to remind users to open push or location permissions. After IOS6, the third-party app needs to jump to the system Setup interface and need to add a prefs value to the URL type, such as:

Jump system settings The items in the root directory use the following method:

  _array = @[               @{@ "System settings": @ "Prefs:root=internet_tethering"},               @{@ "WIFI settings": @ "Prefs:root=wifi"},               @{@ "Bluetooth settings": @ "Prefs:root=bluetooth"},               @{@ "system notification": @ "prefs:root=notifications_id"},               @{@ "Universal settings": @ "Prefs:root=general"},               @{@ "Display settings": @ "Prefs:root=display&brightness"},               @{@ "Wallpaper settings": @ "Prefs:root=wallpaper"},               @{@ "Sound settings": @ " Prefs:root=sounds "},               @{@" Privacy settings ": @" Prefs:root=privacy "},               @{@" APP Store ": @" Prefs:root=store "},               @{@" Notes ": @" Prefs:root=notes "},               @{@" Safari ": @" Prefs:root=safari "},               @{@" Music ": @" Prefs:root=music "},               @{@ "photo": @ "Prefs:root=photos"}               ];        Nsurl * url = [Nsurl urlwithstring:[_array[index] allvalues].firstobject];        [[UIApplication Sharedapplication]openurl:url];

If you want to jump to a third-party app's settings interface, using Prefs:root=boundleid, Boundleid is a boundleid for third-party apps.

If you need to continue to jump to the inner layer of the project, you can add the path path by adding the following:

_array = @[               @{@ "About this machine": @ "Prefs:root=general&path=about"},               @{@ "software Upgrade": @ "prefs:root=general&path= Software_update_link "},               @{@" Date Time ": @" Prefs:root=general&path=date_and_time "},               @{@" accessibility ": @" Prefs:root=general&path=accessibility "},               @{@" Keyboard settings ": @" Prefs:root=general&path=keyboard "},               @{@" VPN ": @" Prefs:root=general&path=vpn "},               @{@" Wallpaper settings ": @" Prefs:root=wallpaper "},               @{@" Sound settings ": @" prefs:root= Sounds "},               @{@" Privacy settings ": @" Prefs:root=privacy "},               @{@" APP Store ": @" Prefs:root=store "},               @{@" Restore Settings ": @" Prefs : Root=general&path=reset "},               @{@" app notification ": @" prefs:root=notifications_id&path= app Boundleid "}               ];

iOS in-app jump system settings related interface

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.