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