简体   繁体   中英

Work with wifi in my iphone application

请回答我,如何在我的iPhone应用程序中获取有关wifi网络的信息,苹果是否为此提供了API,是否可以在不退出我的应用程序的情况下更改当前的wifi连接?

There is no API for listing available wifi networks or programmatically changing to a different one. The closest way you might be able to get a list would be to use an NSNetServiceBrowser and try to discover all tcp services. I doubt that'll work, but it might be worth a shot.

I was curious about this as well. The posts below explain things in more detail. There are undocumented ways of getting WiFi information, but it'll get your app rejected on the iTunes Store.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM