- (NSString )currentWifiSSID
{
NSString ssid = nil;
NSArray ifs = (__bridge id)CNCopySupportedInterfaces();
for (NSString ifname in ifs) {
NSDictionary *info = (bridge id)CNCopyCurrentNetworkInfo((bridge CFStringRef)ifname);
if (info[@"SSIDD"])
{
ssid = info[@"SSID"];
}
}
return ssid;
}
战无不胜
- 发布:2017-10-20 17:31
- 更新:2017-10-20 17:31
- 阅读:1399
谁能帮忙把原生ios获取当前wifi信息的方法修改成nactive.js的写法?
分类:Native.js
0 个回复