SoFunction
Updated on 2025-04-07

How to set the relevant interface of the IOS application jump system

In iOS development, there is sometimes a need to jump to the system setting interface, such as prompting the user to turn on Bluetooth or WIFI, reminding the user to turn on push or location permissions, etc. After iOS6, third-party applications need to jump to the system settings interface and add a prefs value to the URL type, as shown in the figure below:


The following methods are used to jump to the project in the root directory of the system:

_array = @[
@{@"System Settings":@"prefs:root=INTERNET_TETHERING"},
@{@"WIFI Settings":@"prefs:root=WIFI"},
@{@"Bluetooth Settings":@"prefs:root=Bluetooth"},
@{@"System Notification":@"prefs:root=NOTIFICATIONS_ID"},
@{@"General Settings":@"prefs:root=General"},
@{@"Show 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 the setting interface of a third-party application, use prefs:root=boundleId, which is the boundleId of a third-party application.

If you need to continue to jump to the inner layer of the project, you can add a path path as follows:

_array = @[
@{@"About this unit":@"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 Notifications":@"prefs:root=NOTIFICATIONS_ID&path=AppliedboundleId"}
];

The above content introduces you how to set up related interfaces in the IOS application jump system, and I hope it will be helpful to everyone!