|Availabile||3.0 – present|
MobileWiFi is the framework that manages WiFi functionality on iOS. It replaces the obsolete Apple80211 framework. MobileWiFi.framework has a C API, and a unfinished reverse-engineered header is available here.
Retrieve a list of known networks
WiFiManagerRef manager = WiFiManagerClientCreate(); CFArrayRef networks = WiFiManagerClientCopyNetworks(manager); NSLog(@"networks: %@", networks); CFRelease(manager); CFRelease(networks);