If Device Supports Touch ID
问题 Wondering how I can determine if the device the user has supports the Touch ID API? Hopefully have this as a boolean value. Thanks! 回答1: try this: - (BOOL)canAuthenticateByTouchId { if (SYSTEM_VERSION_GREATER_THAN_OR_EQUAL_TO(@"8.0")) { return [[[LAContext alloc] init] canEvaluatePolicy:LAPolicyDeviceOwnerAuthenticationWithBiometrics error:nil]; } return NO; } or like @rckoenes suggest: - (BOOL)canAuthenticateByTouchId { if ([LAContext class]) { return [[[LAContext alloc] init]