Opening the Settings app from another app

前端 未结 17 2574
傲寒
傲寒 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:17

    SWIFT 4.0

    'openURL' was deprecated in iOS 10.0: Please use openURL:options:completionHandler: instead

    UIApplication.shared.open(URL.init(string: UIApplicationOpenSettingsURLString)! , options: [:], completionHandler: nil)
    

提交回复
热议问题