简体   繁体   中英

How to open general settings page (home page, not app settings)?

I'd like to redirect the user to the general settings page, not the application settings page (with permissions, etc.). Is that possible and if so, how?

Try this!!

 let url = NSURL(string: UIApplicationOpenSettingsURLString)
 if UIApplication.shared.canOpenURL(url as! URL) {
        UIApplication.shared.openURL(url as! URL)
 }

To navigate to specific page, check this link: How do i open phone settings when a button is clicked ios

试试下面的代码

 UIApplication.shared.open(URL(string:"App-Prefs:root=General")!, options: [:], completionHandler: nil)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM