0

Apple 已经记录了从任何 iOS 应用程序转到设置应用程序的方法。但是有没有办法直接在设置应用程序中启动(应用程序的)权限?

我看到了这个私有标头(首选项框架),它似乎完成了任务,但我不知道如何使用它。

4

1 回答 1

0

在这里,使用UIApplicationOpenSettingsURLString

if let appSettings = NSURL(string: UIApplicationOpenSettingsURLString) {
    UIApplication.sharedApplication().openURL(appSettings)
}
于 2016-12-01T18:22:03.543 回答