How to set up the relevant interface in iOS in-app jump system

Source: Internet
Author: User

How to set up the relevant interface in iOS in-app jump system

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"}

];

How to set up the relevant interface in iOS in-app jump system

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.