GithubHelp home page GithubHelp logo

wintermiao / pggestureviews Goto Github PK

View Code? Open in Web Editor NEW

This project forked from guoxianlongw/pggestureviews

0.0 1.0 0.0 880 KB

高仿支付宝手势解锁,用keychain保存密码,将苹果官方keychain进一步封装,用法和NSUserdefault相同。无图片,解耦性强,使用coregraphic绘制。

Objective-C 100.00%

pggestureviews's Introduction

PGGestureViews

高仿支付宝手势解锁,用keychain保存密码,将苹果官方keychain进一步封装,用法和NSUserdefault相同。无图片,解耦性强,使用coregraphic绘制。

gifImage

PGGestureViews PGGestureViews

  //typedef enum {
  //    AlertPwdModel,    //修改密码 (需要先输入老密码)
  //    SetPwdModel,      //重置密码(无论存不存老密码都一并删除,在重新设置密码)
  //    ValidatePwdModel, //验证密码 (输入一遍,进行验证)
  //    DeletePwdModel,   //删除密码
  //    NoneModel
  //}GestureModel;



///调用手势解锁页面
AliPayViews *alipay = [[AliPayViews alloc] initWithFrame:self.view.bounds];
alipay.gestureModel = ValidatePwdModel;

alipay.block = ^(NSString *pswString) {
    NSLog(@"设置密码成功-----你的密码为 = 【%@】\n\n", pswString);
    [self dismissViewControllerAnimated:YES completion:nil];  // 消失你的页面
    
};
[self.view addSubview:alipay];



/****   KeychainData.m  *****/
/*****************   根据keychain官网的,封装,增,取,删。都只需一句话  *********************/
+ (void)setObject:(id)object forKey:(id)key;
+ (id)objectForKey:(id)key;
+ (void)removeObjectForKey:(id)key;

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.