iOS 跳到Wi-Fi设置界面

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];

}

}

你可能感兴趣的:(iOS 跳到Wi-Fi设置界面)