I want to use the CNCopySupportedInterfaces
API to get the SSID of Wifi interface. But I just have doubt about the API CNCopySupportedInterfaces
. Will this API provide a list of all configured Wifi interfaces or only one which is currently active or info about all access points that are reachable (but not configured) at that moment?
相关问题
- CALayer - backgroundColor flipped?
- Core Data lightweight migration crashes after App
- How can I implement password recovery in an iPhone
- how do you prevent page scroll in textarea on mobi
- Custom UITableview cell accessibility not working
相关文章
- Could I create “Call” button in HTML 5 IPhone appl
- Unable to process app at this time due to a genera
- Popover segue to static cell UITableView causes co
- How do you detect key up / key down events from a
- “Storyboard.storyboard” could not be opened
- Open iOS 11 Files app via URL Scheme or some other
- Can keyboard of type UIKeyboardTypeNamePhonePad be
- Can not export audiofiles via “open in:” from Voic
CNCopySupportedInterfaces
andCNCopyCurrentNetworkInfo
of CaptiveNetwork, will gives only your connected wifi name and detail, Without the use ofprivate library (Apple80211)
it will not provide you other reachable wifi list or other info.You can refer to: How do I use CaptiveNetwork to get the current WiFi Hotspot Name for more information.
You could have a look at iphone-wireless project if you are interested in Apple80211. There exists a sample app "Stumber" which does exactly what you want. But you cannot use this in your app if you want to publish to App Store because as it uses private APIs. Apple rejects apps those use private APIs.
As of iOS 9 Beta 4 CNCopySupportedInterfaces is deprecated. Much pain ensuing....
https://forums.developer.apple.com/message/31340#31340