Fingerprint Recognition for ios development
Fingerprint Recognition is released for iPhone 5s. The most important application area of the fingerprint recognition SDK for iOS 8.0 apple is that the fingerprint recognition function should be used for payment. You need to import the header file.
#import
Core code
If ([UIDevice currentDevice]. systemVersion. floatValue <8.0) {NSLog (@ "not supported"); return;} LAContext * ctx = [[LAContext alloc] init]; // determine whether the device supports fingerprint recognition if ([ctx canEvaluatePolicy: LAPolicyDeviceOwnerAuthenticationWithBiometrics error: NULL]) {NSLog (@ ""); // enter the fingerprint, asynchronous // prompt: fingerprint recognition only determines whether the current user is the mobile phone owner! The original logic of the program will not be disturbed! [Ctx evaluatePolicy: Login localizedReason: @ "fingerprint Logon" reply: ^ (BOOL success, NSError * error) {NSLog (@ "% d % @", success, error ); if (success) {// logon succeeded // TODO}]; NSLog (@ "come here") ;}else {NSLog (@ "not supported ");}