The first method:
After iOS10 is updated, the system settings jump was disabled and the App settings can only be redirected. However, I recently found that Apple has updated the URL scheme again, which is available for personal testing. It is recommended that iOS10 has been downloaded and the original scheme is still used.
#define iOS10 ([[UIDevice currentDevice].systemVersion doubleValue] >= 10.0) NSString * urlString = @"App-Prefs:root=WIFI"; if ([[UIApplication sharedApplication] canOpenURL:[NSURL URLWithString:urlString]]) { if (iOS10) { [[UIApplication sharedApplication] openURL:[NSURL URLWithString:urlString] options:@{} completionHandler:nil]; } else { [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"prefs:root=WIFI"]]; } }
The second method:
Use private APIs, be careful. If you want to use them and pass the audit, you can encrypt private method names and other
NSURL*url=[NSURL URLWithString:@"Prefs:root=WIFI"]; Class LSApplicationWorkspace = NSClassFromString(@"LSApplicationWorkspace"); [[LSApplicationWorkspace performSelector:@selector(defaultWorkspace)] performSelector:@selector(openSensitiveURL:withOptions:) withObject:url withObject:nil];
Appendix: After iOS10, other interfaces will jump
All jumps currently supported by iOS10 are available for personal testing (test system: 10.2.1)
Jump writing method
Wireless LAN App-Prefs:root=WIFI
Bluetooth App-Prefs:root=Bluetooth
Cellular Mobile Network App-Prefs:root=MOBILE_DATA_SETTINGS_ID
Personal hot topics App-Prefs:root=INTERNET_TETHERING
Operator App-Prefs:root=Carrier
Notification App-Prefs:root=NOTIFICATIONS_ID
General App-Prefs:root=General
General-About App-Prefs:root=General&path=About
General-Keyboard App-Prefs:root=General&path=Keyboard
General-Assisted Functions App-Prefs:root=General&path=ACCESSIBILITY
General-Language and Region App-Prefs:root=General&path=INTERNATIONAL
General-Restore App-Prefs:root=Reset
Wallpaper App-Prefs:root=Wallpaper
Siri App-Prefs:root=SIRI
Privacy App-Prefs:root=Privacy
Safari App-Prefs:root=SAFARI
Music App-Prefs:root=MUSIC
Music-Equalizer App-Prefs:root=MUSIC&path=:EQ
Photos and Camera App-Prefs:root=Photos
FaceTime App-Prefs:root=FACETIME
The above article quickly solves the problem that iOS 10 cannot jump to the WiFi list of the system is all the content I have shared with you. I hope you can give you a reference and I hope you can support me more.