Cha*_*era 1 url-scheme ios touch-id swift ios11
我正在使用下面的代码快速导航到该Touch ID and Passcode部分,
guard let profileUrl = URL(string : "App-Prefs:root=TOUCHID_PASSCODE") else {
return
}
if UIApplication.shared.canOpenURL(profileUrl){
if #available(iOS 10.0, *) {
UIApplication.shared.open(profileUrl, options: [:], completionHandler: nil)
} else {
// Fallback on earlier versions
}
}
Run Code Online (Sandbox Code Playgroud)
它在 iOS 10 上工作正常。但现在不起作用。它仅导航至Settings,而不导航至该Touch ID & Passcode部分。任何原因。
小智 5
苹果已从“设置”应用程序中删除了该功能。保持这些功能的唯一选择是保留 iOS 10。
从 iOS 11 开始,您只能调用主设置屏幕,
guard let profileUrl = URL(string : "App-Prefs:") else {
return
}
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
1345 次 |
| 最近记录: |