iOS Launching Settings -> Restrictions URL Scheme

后端 未结 13 1506
自闭症患者
自闭症患者 2020-11-22 09:42

I\'ve recently discovered the awesome iOS5 custom Settings URL Scheme, which can be explained in detail at this great website.

I\'ve found this to work, dir

13条回答
  •  北恋
    北恋 (楼主)
    2020-11-22 10:22

    As of iOS10 you can use

    UIApplication.sharedApplication().openURL(NSURL(string:"App-Prefs:root")!) 
    

    to open general settings.

    also you can add known urls(you can see them in the most upvoted answer) to it to open specific settings. For example the below one opens touchID and passcode.

    UIApplication.sharedApplication().openURL(NSURL(string:"App-Prefs:root=TOUCHID_PASSCODE")!)
    

提交回复
热议问题