ios 調用裝置系統設定介面功能,ios系統設定
//想要實現應用內跳轉到系統設定介面功能,需要先在Targets-Info-URL Types-URL Schemes中添加prefs
-(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”},
}