UI advanced jump system settings interface method, ui advanced
Jump to the system settings page, for example, prompting users to open the location, Bluetooth or WIFI, reminding users to open the push or location permissions, etc.
After iOS6, a third-party application needs to jump to the system setting interface and add a prefs value to the URL type, for example:
Jump to the system and set the project in the root directory using the following method
1 _ array = @ [2 @ {@ "system settings": @ "prefs: root = INTERNET_TETHERING"}, 3 @ {@ "WIFI Settings": @ "prefs: root = WIFI "}, 4 @ {@" Bluetooth Settings ": @" prefs: root = Bluetooth "}, 5 @ {@" system notification ": @" prefs: root = icationications_id "}, 6 @ {@" ": @" prefs: root = General "}, 7 @ {@" ": @" prefs: root = DISPLAY & BRIGHTNESS "}, 8 @ {@" Wallpaper Settings ": @" prefs: root = Wallpaper "}, 9 @ {@" sound settings ": @" prefs: root = Sounds "}, 10 @ {@" privacy settings ": @" prefs: root = privacy "}, 11 @ {@" APP Store ": @" prefs: root = STORE "}, 12 @ {@" Notes ": @" prefs: root = NOTES "}, 13 @ {@" Safari ": @" prefs: root = Safari "}, 14 @ {@" Music ": @" prefs: root = MUSIC "}, 15 @ {@" photo ": @" prefs: root = Photos "} 16]; 17 NSURL * url = [NSURL URLWithString: [_ array [index] allValues]. firstObject]; 18 [[UIApplication sharedApplication] openURL: url];
To jump to the setting interface of a third-party application, use the prefs: root = boundleId method. boundleId is the boundleId of the third-party application.
To continue to jump to the project's inner layer, you can add the path as follows:
1 _ array = @ [2 @ {@ "": @ "prefs: root = General & path = About"}, 3 @ {@ "software upgrade ": @ "prefs: root = General & path = SOFTWARE_UPDATE_LINK"}, 4 @ {@ "Date and Time": @ "prefs: root = General & path = DATE_AND_TIME "}, 5 @ {@ "Accessibility": @ "prefs: root = General & path = ACCESSIBILITY"}, 6 @ {@ "keyboard Settings": @ "prefs: root = General & path = Keyboard "}, 7 @ {@" VPN ": @" prefs: root = General & path = VPN "}, 8 @ {@ "Wallpaper Settings": @ "prefs: root = Wallpaper"}, 9 @ {@ "sound settings": @ "prefs: root = Sounds "}, 10 @ {@ "privacy settings": @ "prefs: root = privacy"}, 11 @ {@ "APP Store": @ "prefs: root = STORE "}, 12 @ {@ "Restore Settings": @ "prefs: root = General & path = Reset"}, 13 @ {@ "Application Notification": @ "prefs: root = icationications_id & path = Application boundleId "} 14];