Opening the Settings app from another app

前端 未结 17 2502
傲寒
傲寒 2020-11-22 01:37

Okay, I know that there are many question about it, but they are all from many time ago.

So. I know that it is possible because the Map app does it.

In the M

17条回答
  •  庸人自扰
    2020-11-22 02:23

    Swift You can use following function to open Settings App with Bluetooth Page

    func openSettingsApp(){
        if let settings = NSURL(string: "prefs:root=Bluetooth") {
            UIApplication.sharedApplication().openURL(settings)
        }
    }
    

    Again this would not open the App's Settings. This would open settings app with Bluetooth as this is deep linking to bluetooth.

提交回复
热议问题