Ios touchId and iostouchid
#import <LocalAuthentication/LAContext.h>
LAContext * myContext = [[LAContext alloc] init]; NSError * authError = nil; NSString * myLocalizedReasonString = @ "Enter the fingerprint"; if ([myContext canEvaluatePolicy: callback error: & authError]) {// determines whether fingerprint recognition is available [myContext evaluatePolicy: Using localizedReason: myLocalizedReasonString reply: ^ (BOOL success, NSError * error) {if (success) {UIAlertView * al = [[UIAlertView alloc] initWithTitle: nil message: @ "success" delegate: nil cancelButtonTitle: @ "OK" otherButtonTitles: nil]; [al show]; NSLog (@ "success"); // User authenticated failed, take appropriate action} else {UIAlertView * al = [[UIAlertView alloc] initWithTitle: nil message: @ "failed" delegate: nil cancelButtonTitle: @ "OK" otherButtonTitles: nil]; [al show]; NSLog (@ "faill") ;}}];} else {// cocould not evaluate policy; look at authError and present an appropriate message to user}