iOS 跳到Wi-Fi设置界面
2017-06-01 本文已影响342人
木_风
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];
}
}