CocoaTouch/iOS 中是否有用于检测无线网络的 API?我想编写一个应用程序来保存手机在给定时刻可以看到的网络列表。
最佳答案
据我所知,您可以使用 CaptiveNetwork 的 CNCopySupportedInterfaces
和 CNCopyCurrentNetworkInfo
获取有关当前连接的 Wi-Fi 的信息| .您可以引用:How do I use CaptiveNetwork to get the current WiFi Hotspot Name for more information .
According to iPhone get a list of all SSIDs without private library :
Without the use of private library (Apple80211) you can only get the SSID of the network your device is currently connected to.
你可以看看iphone-wireless如果您对 Apple80211 感兴趣,请访问该项目。存在一个示例应用程序“Stumber”,它完全可以满足您的需求。但是如果你想发布到 App Store,你不能在你的应用程序中使用它,因为它使用私有(private) API
关于iphone - iOS API 检测无线网络,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3977273/