我想在我的iOS应用中显示所有远程wifi网络。为此,我使用以下代码:
NSArray *interFaceNames = (__bridge_transfer id)CNCopySupportedInterfaces();
for (NSString *name in interFaceNames)
{
NSDictionary *info = (__bridge_transfer id)CNCopyCurrentNetworkInfo((__bridge CFStringRef)name);
NSLog(@"%@",info);
NSLog(@"wifi info: bssid: %@, ssid:%@, ssidData: %@", info[@"BSSID"], info[@"SSID"],info[@"SSIDDATA"]);
}
但这只是给我连接的wifi网络信息。 如何显示所有远程Wifi-Network?