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