适用于特定设置的iOS 11 URL方案停止工作 [英] iOS 11 URL Scheme for specific Settings section stopped working

查看:73
本文介绍了适用于特定设置的iOS 11 URL方案停止工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的应用程序使用URL方案将用户直接带到设置"/常规"/关于"部分,以下URL在10.3.x中运行良好.
"App-Prefs:root = General& path = About"

My app uses a URL scheme to take users directly to Settings/General/About section, the following URL was working fine in 10.3.x.
"App-Prefs:root=General&path=About"

但是,此URL方案在iOS 11 GM版本中不再起作用.它只会启动设置"应用,而不会进一步吸引用户.有人知道iOS 11正式版中是否会出现这种情况吗?预先感谢.

However, this URL scheme no longer works in iOS 11 GM build. It only launches the Settings app, but doesn't take user any further. Does anybody know if this is expected in iOS 11 official release? Thanks in advance.

推荐答案

let url = NSURL(string: "app-settings:root=Privacy&path=LOCATION")! as URL
UIApplication.shared.open(url, options: [:], completionHandler: nil)

对于我来说,在iPhone设备和模拟器上运行iOS11都很好.

It works fine for me, iOS11 both on iPhone device and simulator.

将应用偏好设置:"更改为应用设置:"即可.

"App-Prefs:" change to "app-settings:" then will work.

这篇关于适用于特定设置的iOS 11 URL方案停止工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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