如何在iPhone应用程序中显示Wifi网络列表? [英] How to display a list of Wifi-Networks in an iPhone app?

查看:146
本文介绍了如何在iPhone应用程序中显示Wifi网络列表?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我发现了一些私有(未记录)的API,但苹果不允许应用程序使用私有框架。那么任何人都知道如何使用苹果官方包这样做?



like:当youtube应用程序提示您的推送通知:选择一个Wi-Fi网络 p>

提前感谢。

解决方案

如果设置了UIRequiresPersistentWiFi设置info.plist文件,iPhone操作系统会知道你的应用程序需要Wifi和弹出信息为你。



据我所知,没有应用程序实际手动显示WiFi选择提醒。


I found some private (undocumented) APIs but Apple does not allow apps to use private frameworks. So does anyone know how to do this using Apple official packages?

like: when youtube app prompts you to the push notification: "Select a Wi-fi network"

Thanks in advance.

解决方案

If you set the UIRequiresPersistentWiFi setting in your info.plist file, the iPhone OS will know that your app needs Wifi and pop up the message for you.

As far as I know, no app actually manually displays the wifi selection alert.

这篇关于如何在iPhone应用程序中显示Wifi网络列表?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆