问题
there are a lot of lists with prefs urls for the iOS settings app, used to open a specific site in the settings app (e.g. https://stackoverflow.com/a/8246814/4266294). Unfortunately, I cannot find the url in order to open the touch id & passcode settings.
Does anybody know the url scheme for this?
回答1:
if let url = URL(string: "App-Prefs:root=TOUCHID_PASSCODE") {
UIApplication.shared.openURL(url)
}
this works on IOS 10.2. However I'm not sure if apple rejects this or not. Has anyone had any issues with their submission using this?
回答2:
Use this:
prefs:root=TOUCHID_PASSCODE
Seen at http://www.appps.jp/126333/
来源:https://stackoverflow.com/questions/35410746/ios-prefs-url-scheme-for-touch-id-passcode-settings