For Objective-c, just a few lines of code can be done.
Like what:
#import <localauthentication/localauthentication.h>-(void) viewdidload{[Super Viewdidload]; //additional setup after loading the view, typically from a nib.Lacontext*context =[[Lacontext alloc] init]; if(![Context Canevaluatepolicy:lapolicydeviceownerauthenticationwithbiometrics Error:nil]) NSLog (@"Touch ID not supported!"); [Context evaluatepolicy:lapolicydeviceownerauthenticationwithbiometrics Localizedreason:@"Retrieve password"reply:^void(BOOL success, Nserror *error) {NSLog (@"Is success?%d", success); if(!success) { Switch(error.code) { CaseLaerrorauthenticationfailed:nslog (@"Authentication Failed"); Break; CaseLaerrorusercancel:nslog (@"User Cancelled"); Break; CaseLaerroruserfallback:nslog (@"User Fallback"); Break; CaseLaerrorsystemcancel:nslog (@"System Cancelled"); Break; CaseLaerrorpasscodenotset:nslog (@"Passcode not Set"); Break; CaseLaerrortouchidnotavailable:nslog (@"Touch ID not Available"); Break; default: Break; } } }];}
iOS8.0 How to use Touch ID for verification