That's the question, but here's the long version: I'm working on a project that needs to mimic the connection workflow of the Belkin Wemo. The Wemo is a physical switch that can be controlled from an iOS app.

This is how the setup works:
- The Wemo acts as a wifi router, it broadcasts an SSID, and you choose it from the list of available networks in your iPhone settings.
- You then choose your home wi-fi network from within the wemo app, given a list of available networks. and enter your network password. Presumably so the Wemo device can connect to your wi-fi router.
- The Wemo app then announces it is connecting, and then that it is setting up remote access.
Which brings me to: How does the Wemo app check for available networks -- aka, Is there an iOS API for scanning available networks, displaying them and working with them?
There is no public API in iOS currently that can do this (used to be available pre iOS 5). You can check out a third party library like Stumbler which should help you achieve the viewing of networks: http://code.google.com/p/iphone-wireless/wiki/Stumbler
来源:https://stackoverflow.com/questions/16926657/what-is-the-ios-api-for-scanning-available-wi-fi-networks