iOS10跳转wifi页面
作者:
pokeey | 来源:发表于
2018-07-16 17:28 被阅读0次 NSString * urlString = @"App-Prefs:root=WIFI";
if ([[UIApplication sharedApplication] canOpenURL:[NSURL URLWithString:urlString]]) {
if (iOS10) {
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:urlString] options:@{} completionHandler:nil];
} else {
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"prefs:root=WIFI"]];
}
}
pch
#define iOS10 ([[UIDevice currentDevice].systemVersion doubleValue] >= 10.0)
本文标题:iOS10跳转wifi页面
本文链接:https://www.haomeiwen.com/subject/uywbpftx.html
网友评论