【发布时间】:2018-04-21 05:32:02
【问题描述】:
抱歉,iPhone-X 不可用。
iPhone-X 推出后,每个人都希望他们的应用程序应该兼容 iOS11 和 touchID,但问题是开发人员测试 touch ID 的成本太高。
我没有 iPhone 来检查我的代码,但我可以在 iOS 模拟器中检查吗?
let context = LAContext()
if ( context.biometryType == .typeFaceID ) {
// Face ID
}
if ( context.biometryType == .typeTouchID) {
// Touch ID
} else {
// Stone Age
}
【问题讨论】:
-
见here
-
感谢您的帮助,谢谢@kerberos
标签: ios swift touch-id iphone-x face-id