ios: How to display “choose wireless connection” popup?

荒凉一梦 提交于 2019-12-03 14:25:10

It will show up automatically if your app tries to access internet-based resource and there's no wifi connection established but there is a wifi access point nearby.

This dialog appears automatically if you have "Application uses Wi-Fi" set to YES in your ...-Info.plist and if there is no connection.

This is not possible. The pop-up you have seen before is in Settings -> Wi-Fi -> Ask to Join Networks -> ON/OFF

Setting this to ON allows the OS to prompt the user to join a Wi-Fi network if it finds any in reach and you are not currently connected to one.

Apps cannot show this prompt, it's a system-level prompt.

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