当前位置:首页 > 操作系统 > Ios

iOS 跳转系统功能

             1 NSString * urlString = @"App-Prefs:root=WIFI";
 2 3if ([[UIApplication sharedApplication] canOpenURL:[NSURL URLWithString:urlString]]) {
 4 5if ([[UIDevice currentDevice].systemVersion doubleValue] >= 10.0) {
 6 7    [[UIApplication sharedApplication] openURL:[NSURL URLWithString:urlString] options:@{} completionHandler:nil];
 8 9     } else {
1011    [[UIApplication sharedApplication] openURL:[NSURL URLWithString:urlString]];
1213    }
1415}
161718类似也有跳转到以下:
1920 无线局域网 App-Prefs:root=WIFI
2122 蓝牙 App-Prefs:root=Bluetooth
2324 蜂窝移动网络 App-Prefs:root=MOBILE_DATA_SETTINGS_ID
2526 个人热点 App-Prefs:root=INTERNET_TETHERING
2728 运营商 App-Prefs:root=Carrier
2930 通知 App-Prefs:root=NOTIFICATIONS_ID
3132 通用 App-Prefs:root=General
3334 通用-关于本机 App-Prefs:root=General&path=About
3536 通用-键盘 App-Prefs:root=General&path=Keyboard
3738 通用-辅助功能 App-Prefs:root=General&path=ACCESSIBILITY
3940 通用-语言与地区 App-Prefs:root=General&path=INTERNATIONAL
4142 通用-还原 App-Prefs:root=Reset
4344 墙纸 App-Prefs:root=Wallpaper
4546 Siri App-Prefs:root=SIRI
4748 隐私 App-Prefs:root=Privacy
4950 Safari App-Prefs:root=SAFARI
5152 音乐 App-Prefs:root=MUSIC
5354 音乐-均衡器 App-Prefs:root=MUSIC&path=com.apple.Music:EQ
5556 照片与相机 App-Prefs:root=Photos
5758 FaceTime App-Prefs:root=FACETIME
5960 只需要把对应的字符串换一下就可以了。

 

原文:http://www.cnblogs.com/yevgeni/p/6932036.html


【说明】本文章由站长整理发布,文章内容不代表本站观点,如文中有侵权行为,请与本站客服联系(QQ:254677821)!