代码之家  ›  专栏  ›  技术社区  ›  Andrew J. Brehm

iOS API检测无线网络

  •  19
  • Andrew J. Brehm  · 技术社区  · 14 年前

    CocoaTouch/iOS中是否有用于检测无线网络的API?我想写一个应用程序,保存手机在特定时刻可以看到的网络列表。

    2 回复  |  直到 14 年前
        1
  •  4
  •   Community CDub    8 年前

    据我所知,您可以使用 CNCopySupportedInterfaces CNCopyCurrentNetworkInfo 属于 CaptiveNetwork . 您可以参考: 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,就不能在你的应用中使用它,因为它使用私有api

        2
  •  0
  •   mustafa96m    11 年前