NSURL*url = [NSURLURLWithString:@"App-Prefs:root=WIFI"];
floatversion = [[[UIDevice currentDevice] systemVersion] floatValue];
if(version >=10.0){
[[UIApplicationsharedApplication] openURL:url options:@{} completionHandler:nil];
}else{
if([[UIApplicationsharedApplication] canOpenURL:url]) {
[[UIApplicationsharedApplication] openURL:url];
}
}
网友评论