MMTouchIDManager
provides an easy way to manage TouchID hardware.
- iOS 8
- ARC
MMTouchIDManager is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'MMTouchIDManager'
and to show the Touch ID Dialog with your custom message, just add this line:
[[MMTouchIDManager sharedInstance] presentTouchIdDialogIfNeededWithMessage:@"Do you want to access with to the BEST APP in the world with your Touch id?" andCompletion:^(BOOL accessEnabled) {
if (accessEnabled) {
[self showAlertWithMessage:@"Congratulations!!! Your are in!" withRetry:false];
}else{
[self showAlertWithMessage:@"Ooops, your are not in!" withRetry:true];
}
}];
iMark21, marques.jm@icloud.com
MMTouchIDManager is available under the MIT license. See the LICENSE file for more info.