我研究了几个答案,但没有找到适用于 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)
Apple 是否允许这样做?
最佳答案
如果打开网址UIApplicationOpenSettingsURLString
然后您将获得应用的设置,其中包括后台应用刷新。
关于ios - 在 iOS 11 中从我的应用程序打开设置应用程序中的特定项目,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48771321/