ios--调用设备系统功能
2018-02-06 00:55
225 查看
//想要实现应用内跳转到系统设置界面功能,需要先在Targets-Info-URL Types-URL Schemes中添加prefs
-(void)OpenAppSetting{
// if ([[UIApplication sharedApplication] canOpenURL:[NSURL URLWithString:@”prefs:root=WIFI”]])
// {
// [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@”prefs:root=WIFI”]];
// }
// 蓝牙
// if ([[UIApplication sharedApplication] canOpenURL:[NSURL URLWithString:@”prefs:root=General”]])
// {
// [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@”prefs:root=General”]];
// }
// if ([[UIApplication sharedApplication] canOpenURL:[NSURL URLWithString:@”prefs:root=General”]])
// {
// [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@”prefs:root=General”]];
// }
// if ([[UIApplication sharedApplication] canOpenURL:[NSURL URLWithString:@”prefs:root=LOCATION_SERVICES”]])
// {
// [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@”prefs:root=LOCATION_SERVICES”]];
// }
// if ([[UIApplication sharedApplication] canOpenURL:[NSURL URLWithString:@”prefs:root=NOTIFICATIONS_ID”]])
// {
// [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@”prefs:root=NOTIFICATIONS_ID”]];
// }
// @{@”系统设置”:@”prefs:root=INTERNET_TETHERING”},
// 7 @{@”WIFI设置”:@”prefs:root=WIFI”},
// 8 @{@”蓝牙设置”:@”prefs:root=Bluetooth”},
// 9 @{@”系统通知”:@”prefs:root=NOTIFICATIONS_ID”},
// 10 @{@”通用设置”:@”prefs:root=General”},
// 11 @{@”显示设置”:@”prefs:root=DISPLAY&BRIGHTNESS”},
// 12 @{@”壁纸设置”:@”prefs:root=Wallpaper”},
// 13 @{@”声音设置”:@”prefs:root=Sounds”},
// 14 @{@”隐私设置”:@”prefs:root=privacy”},
// 15 @{@”APP Store”:@”prefs:root=STORE”},
}
-(void)OpenAppSetting{
//Wifi
// if ([[UIApplication sharedApplication] canOpenURL:[NSURL URLWithString:@”prefs:root=WIFI”]])
// {
// [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@”prefs:root=WIFI”]];
// }
// 蓝牙
// if ([[UIApplication sharedApplication] canOpenURL:[NSURL URLWithString:@”prefs:root=General”]])
// {
// [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@”prefs:root=General”]];
// }
//通用
// if ([[UIApplication sharedApplication] canOpenURL:[NSURL URLWithString:@”prefs:root=General”]])
// {
// [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@”prefs:root=General”]];
// }
//跳转到定位服务
// if ([[UIApplication sharedApplication] canOpenURL:[NSURL URLWithString:@”prefs:root=LOCATION_SERVICES”]])
// {
// [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@”prefs:root=LOCATION_SERVICES”]];
// }
//跳转到通知
// if ([[UIApplication sharedApplication] canOpenURL:[NSURL URLWithString:@”prefs:root=NOTIFICATIONS_ID”]])
// {
// [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@”prefs:root=NOTIFICATIONS_ID”]];
// }
//其他设置
// @{@”系统设置”:@”prefs:root=INTERNET_TETHERING”},
// 7 @{@”WIFI设置”:@”prefs:root=WIFI”},
// 8 @{@”蓝牙设置”:@”prefs:root=Bluetooth”},
// 9 @{@”系统通知”:@”prefs:root=NOTIFICATIONS_ID”},
// 10 @{@”通用设置”:@”prefs:root=General”},
// 11 @{@”显示设置”:@”prefs:root=DISPLAY&BRIGHTNESS”},
// 12 @{@”壁纸设置”:@”prefs:root=Wallpaper”},
// 13 @{@”声音设置”:@”prefs:root=Sounds”},
// 14 @{@”隐私设置”:@”prefs:root=privacy”},
// 15 @{@”APP Store”:@”prefs:root=STORE”},
}
相关文章推荐
- iOS-调用系统的短信和发送邮件功能,实现短信分享邮件分享
- ios 调用系统打电话和发消息的功能
- iOS调用系统发短信功能详解
- iOS调用系统发短信功能详解
- iOS-调用系统的短信和发送邮件功能,实现短信分享邮件分享
- ios 调用系统发短信以及打电话功能
- IOS问题汇总:2015-1-9 iOS 调用系统发短信以及打电话功能
- iOS10系统下调用系统功能权限以及相关设置
- iOS 调用系统发短信以及打电话功能
- JS中调用android和ios系统手机打开相机并可选择相册功能
- iOS-调用系统的短信和发送邮件功能,实现短信分享邮件分享
- ios 调用系统功能打电话、发信息
- ios 调用系统发短信以及打电话功能
- iOS 调用系统相关功能(本机信息,手电筒,电话,短信,通讯录,内存,电池,亮度)