10
IOS TOUCH ID HappyMan 2014/12/30

iOS Touch ID 介紹

Embed Size (px)

Citation preview

Page 1: iOS Touch ID 介紹

IOS TOUCH ID

HappyMan

2014/12/30

Page 2: iOS Touch ID 介紹

iPhone 5s/iPhone 6/iPhone 6+

Page 3: iOS Touch ID 介紹

iOS 8+

Page 4: iOS Touch ID 介紹
Page 5: iOS Touch ID 介紹

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

Page 6: iOS Touch ID 介紹

Apple Sample Code

• KeychainTouchID: Using Touch ID with Keychain and LocalAuthenticationhttps://developer.apple.com/library/ios/samplecode/KeychainTouchID/

Page 7: iOS Touch ID 介紹

Demo

• https://github.com/happymanx/TouchIDTest

Page 8: iOS Touch ID 介紹

開源

• EHFAuthenticator-Touch-IDhttps://github.com/jstart/EHFAuthenticator-Touch-IDStar: 155 (2014/12/30)

• VENTouchLockhttps://github.com/venmo/VENTouchLockStar: 595 (2014/12/30)

Page 9: iOS Touch ID 介紹

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.

Page 10: iOS Touch ID 介紹

參考

• 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