ios:如何显示“选择无线连接”弹出? [英] ios: How to display "choose wireless connection" popup?

查看:268
本文介绍了ios:如何显示“选择无线连接”弹出?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果没有互联网连接并且您开始使用Ipad或Iphone的Safari应用程序,则会出现一个弹出窗口:选择无线网络

If there is no internet connection and you start for example the safari app with Ipad or Iphone, a popup appears saying: "Choose wireless network"

是否有当我想要强制这个弹出窗口显示在我的应用程序中的方法?

Is there a way to force this popup to show up in my app when I want to?

问题是,我的应用程序中有一个按钮将用户连接到Facebook。按下按钮后,Safari浏览器将打开并显示facebook授权页面。如果没有互联网连接,则会显示此弹出窗口,但无法从那里返回应用程序。因此,目前我在允许此授权页面出现之前检查互联网连接,但我也想显示此弹出窗口。

The problem is, I have a button in my app which connects the user to facebook. After pressing the button the safari browser opens and shows the facebook authorization page. If there is no internet connection this popup appears, but there is no way to turn back to the app from there. So currently I check internet connection before allowing this authorization page to appear, but I also want to show this popup.

推荐答案

此对话框如果您在...- Info.plist中将应用程序使用Wi-Fi设置为YES并且没有连接,则会自动显示。

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

这篇关于ios:如何显示“选择无线连接”弹出?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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