Latest 0.0.2
Homepage https://github.com/Asingers/YJTouchID
License MIT
Platforms ios 9.0
Authors

如何使用YJTouchID

  • YJTouchID文件夹中的两个文件(YJTouchID.h``YJTouchID.m)拖入项目中
  • 导入头文件:#import "YJTouchID.h"
    
    /** 初始化 */
    YJTouchID *touchid = [[YJTouchID alloc]init];

/* 发起TouchID验证 /
[touchid startYJTouchIDWithMessage:@"自定义信息" fallbackTitle:@"按钮标题" delegate:self];

/* 通过代理方法监听TouchID验证的所有结果 /

/* 其中的成功回调和失败回调是必须要实现的,其他的按实际情况各取所需 /
@required

  • (void)YJTouchIDAuthorizeSuccess;
  • (void)YJTouchIDAuthorizeFailure;

@optional

  • (void)YJTouchIDIsNotSupport;
  • (void)YJTouchIDAuthorizeErrorAppCancel;
  • (void)YJTouchIDAuthorizeErrorUserCancel;
  • (void)YJTouchIDAuthorizeErrorUserFallback;
  • (void)YJTouchIDAuthorizeErrorSystemCancel;
  • (void)YJTouchIDAuthorizeErrorPasscodeNotSet;
  • (void)YJTouchIDAuthorizeErrorTouchIDLockout;
  • (void)YJTouchIDAuthorizeErrorInvalidContext;
  • (void)YJTouchIDAuthorizeErrorTouchIDNotEnrolled;
  • (void)YJTouchIDAuthorizeErrorTouchIDNotAvailable;

Latest podspec

{
    "name": "YJTouchID",
    "version": "0.0.2",
    "summary": "A Easy Way To Use YJTouchID.",
    "description": "u5febu901fu96c6u6210TouchID u5230u5f53u524du9879u76eeu4e2du3002A Easy Way To Use YJTouchIDud83dude04",
    "homepage": "https://github.com/Asingers/YJTouchID",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "zhangyuanjie": "[email protected]"
    },
    "platforms": {
        "ios": "9.0"
    },
    "source": {
        "git": "https://github.com/Asingers/YJTouchID.git",
        "tag": "0.0.2"
    },
    "source_files": [
        "YJTouchID",
        "YJTouchID/YJTouchID/*.{h,m}"
    ],
    "resources": "YJTouchID/pic/*.png"
}

Pin It on Pinterest

Share This