【问题标题】:How to Open Internet settings programmatically in ios? [closed]如何在 ios 中以编程方式打开 Internet 设置? [关闭]
【发布时间】:2013-12-05 11:44:30
【问题描述】:

我有一个广播流媒体应用程序。在启动画面中,我想检查互联网连接是否可用。如果不可用,则必须重定向到 wifi 或 3g 设置。如何在我的应用程序中以编程方式打开此设置。

谢谢

【问题讨论】:

标签: ios settings


【解决方案1】:

现在不可能打开默认的设置页面

如果设备越狱,则有可能。

到目前为止,Apple 没有提供任何 URL 架构 来在较新的版本中实现这一目标。

like URL Schema(upto ios5.0 work.it is working after that this depreciated.)

  [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"prefs://"]];

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2013-02-19
    • 2017-08-21
    • 1970-01-01
    • 2018-05-21
    • 1970-01-01
    • 2016-08-29
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多