Giter VIP home page Giter VIP logo

futouchid's Introduction

FUTouchID

  • 一行代码解决指纹解锁

CocoaPods

  1. Add pod 'FUTouchID', '~> 1.0.0' to your Podfile.

  2. Run pod install or pod update.

  3. '#import "FUTouchID.h"'.

登录时

*第一次的登录弹框提示是否使用指纹解锁

*设置中关闭了TouchID,再次打开app

指纹验证错误

*输入错误一次

*输入错误三次

*输入错误五次

*输入错误五次,验证密码后,继续弹框验证指纹

指纹解锁开关

*弹出指纹验证界面

*指纹验证成功

*设置中关闭了TouchID,指纹验证失败

提供的方法

判断设备指纹识别功能【是否可用】

/*
* 判断设备指纹识别功能【是否可用】
*/
+ (BOOL)canEvaluatePolicy;

判断设备指纹识别功能【是否支持】

/*
* 判断设备指纹识别功能【是否支持】
*/
+ (BOOL)canPlatformSupportTouchID;

指纹登录验证

/*
* 指纹登录验证
*
* clickBlock 按钮的点击事件
*/
+ (void)loadAuthenticationWithTouchBlock:(TouchBlock)clickBlock;

弹框提示是否使用指纹解锁

/*
* 弹框提示是否使用指纹解锁
*
* clickBlock 按钮的点击事件
*/
+ (void)showTouchIDAlertView:(TouchBlock)clickBlock;

许可证

LEETheme 使用 GPL V3 许可证,详情见 LICENSE 文件。

futouchid's People

Contributors

fujunzhi avatar

Watchers

Carabineiro avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.