NSString* urlString = @"App-Prefs:root=WIFI";
if([[UIApplicationsharedApplication] canOpenURL:[NSURLURLWithString:urlString]]) {
[[UIApplicationsharedApplication] openURL:[NSURLURLWithString:urlString]];
}else {
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:[urlString stringByReplacingOccurrencesOfString:@"App-P" withString:@"p"]]];
}
当前iOS10/9支持的所有跳转,亲测可用(测试系统:10.2.1 9.3.2)
跳转写法
无线局域网App-Prefs:root=WIFI
蓝牙App-Prefs:root=Bluetooth
蜂窝移动网络App-Prefs:root=MOBILE_DATA_SETTINGS_ID
个人热点App-Prefs:root=INTERNET_TETHERING
运营商App-Prefs:root=Carrier
通知App-Prefs:root=NOTIFICATIONS_ID
通用App-Prefs:root=General
通用-关于本机App-Prefs:root=General&path=About
通用-键盘App-Prefs:root=General&path=Keyboard
通用-辅助功能App-Prefs:root=General&path=ACCESSIBILITY
通用-语言与地区App-Prefs:root=General&path=INTERNATIONAL
通用-还原App-Prefs:root=Reset
墙纸App-Prefs:root=Wallpaper
SiriApp-Prefs:root=SIRI
隐私App-Prefs:root=Privacy
SafariApp-Prefs:root=SAFARI
音乐App-Prefs:root=MUSIC
音乐-均衡器App-Prefs:root=MUSIC&path=com.apple.Music:EQ
照片与相机App-Prefs:root=Photos
FaceTimeApp-Prefs:root=FACETIM
原文链接:http://www.360java.com/ios/9724.html