Upload
shengwen-chiou
View
140
Download
8
Embed Size (px)
Citation preview
IOS TOUCH ID
HappyMan
2014/12/30
iPhone 5s/iPhone 6/iPhone 6+
iOS 8+
LAContext.h
• - (BOOL)canEvaluatePolicy:(LAPolicy)policy error:(NSError * __autoreleasing *)error;Determines if a particular policy can be evaluated.
• - (void)evaluatePolicy:(LAPolicy)policylocalizedReason:(NSString *)localizedReasonreply:(void(^)(BOOL success, NSError *error))reply;Evaluates the specified policy.
• @property (nonatomic, copy) NSString*localizedFallbackTitle;Fallback button title
Apple Sample Code
• KeychainTouchID: Using Touch ID with Keychain and LocalAuthenticationhttps://developer.apple.com/library/ios/samplecode/KeychainTouchID/
開源
• EHFAuthenticator-Touch-IDhttps://github.com/jstart/EHFAuthenticator-Touch-IDStar: 155 (2014/12/30)
• VENTouchLockhttps://github.com/venmo/VENTouchLockStar: 595 (2014/12/30)
VENTouchLock secures your app by requiring a Touch ID fingerprint scan or Passcode to gain access on launch and on background and is used in the Venmo app.
參考
• iOS 8: Integrating Touch IDhttp://code.tutsplus.com/tutorials/ios-8-integrating-touch-id--cms-21949
• Working with Touch ID API in iOS 8 SDKhttp://www.appcoda.com/touch-id-api-ios8/
• #WWDC14 session 711 - Keychain and Authentication with Touch ID