[英]Open specific item in Settings app from my app in iOS 11
我研究了几个答案,但没有找到适用于iOS 11的答案。
我想展示为我的用户打开“后台应用刷新”的方法。 为此,我想从我的应用程序中打开Settings/General/Background App Refresh
菜单。 以下代码仅打开“设置”应用的根菜单。
guard let url = URL(string: "App-Prefs:root=General&path=BACKGROUND_APP_REFRESH") else { return }
UIApplication.shared.open(url, options: [:], completionHandler: nil)
苹果有什么办法可以做到这一点?
如果您打开URL UIApplicationOpenSettingsURLString
那么您将获得应用程序的设置,其中包括后台应用程序刷新。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.