1). I want to get all list of wi-fi SSID programmatically in iphone.
I try following code but it give only connected SSID detail.
NSArray *ifs = (id)CNCopySupportedInterfaces();
NSLog(@"%s: Supported interfaces: %@", __func__, ifs);
id info = nil;
for (NSString *ifnam in ifs) {
info = (id)CNCopyCurrentNetworkInfo((CFStringRef)ifnam);
NSLog(@"%s: %@ => %@", __func__, ifnam, info);
if (info && [info count]) {
break;
}
[info release];
}
2). Another question is that how can I identify that if I am come range in wi-fi when my wi-fi is OFF. Is it possible to identify that I am in range of wi-fi when wi-fi is OFF ?