How to switch between wi-fi networks at runtime (programmatically) in iPhone app

让人想犯罪 __ 提交于 2019-12-02 06:46:06

问题


Is it possible to switch between WiFi networks in an iPhone App programmatically? At time of app execution if one network goes down but that is still connected and I want to switch to another wi-fi network. Is this possible?


回答1:


There is no iOS API for this, but there can be some possible solutions, like make it available on Cydia for jailbroken devices. AirServer just did this.




回答2:


Your iPhone app shouldn't manage wifi networks. If it does, it won't get approved by Apple to be put in the App Store. The iPhone itself manages wifi connections, not a third-party app.




回答3:


If you are developing for a jailbroken iphone, you can develop a MobileSubstrate extension/ Tweak with Theos and hook into the SpringBoard Application. The SBWiFiManager interface is part of SpringBoard app and has a lot of useful methods that should help you with controlling WiFi.



来源:https://stackoverflow.com/questions/8776241/how-to-switch-between-wi-fi-networks-at-runtime-programmatically-in-iphone-app

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!