您的位置:首页 > 其它

打开系统设置页

2015-08-01 15:06 211 查看
- (void) action_openSettings:(id)sender{
if ([[UIDevice currentDevice]systemVersion].floatValue >= 8.0) {
// 如果app没有Settings.bundle,则打开系统设置页,如果有,则打开应用对应的设置页
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:UIApplicationOpenSettingsURLString]];
}else{
//iOS 8版本以下
//        NSURL*url=[NSURL URLWithString:@"prefs:root=WIFI"];//wifi
NSURL*url=[NSURL URLWithString:@"prefs:root=General&path=About"];//通用
[[UIApplication sharedApplication] openURL:url];
}

}


  
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: