Git Product home page Git Product logo

activity_keyboard's Introduction

Build Status

動態鍵盤

  • 依據圖片 0~9 隨機排列
  • 密碼輸入後,上方密碼框,自動屏蔽
  • 確定密碼後,審核完畢,透過 delegate 回給父層

三種狀態

  1. 設定密碼(進行輸入密碼兩次)

    activityKeyViewController *temp  = [[activityKeyViewController alloc]init];
    temp.mainText = @"主要標題";
    temp.secondText = @"次要標題";
    temp.AKBType = AKeyBoardType_settingPin;
    temp._delegate = self;
    [self presentViewController:temp animated:YES completion:nil];
    
  2. 驗證密碼

    activityKeyViewController *temp  = [[activityKeyViewController alloc]init];
    temp.mainText = @"主要標題";
    temp.secondText = @"次要標題";
    temp.AKBType = AKeyBoardType_verifyPin;
    temp.passWord = @"12345678";
    temp.errorTimes_limited = 3;
    temp._delegate = self;
    [self presentViewController:temp animated:YES completion:nil];
    
  3. 重設密碼(驗證密碼x1,輸入密碼x2)

    	activityKeyViewController *temp  = [[activityKeyViewController alloc]init];
        temp.mainText = @"主要標題";
        temp.secondText = @"次要標題";
        temp.AKBType = AKeyBoardType_resetPin;
        temp.passWord = pw_str;
        temp.errorTimes_limited = 3;
        temp._delegate = self;
        [self presentViewController:temp animated:YES completion:nil];
    

img

delegate

@protocol finishDelegate

-(void)AKV_finish:(NSString *)value;

@end

圖片轉代碼

  • imgCodeDefine.h

在此指定圖片轉出的 code 為何

設定 true or false

  • true : 客制代碼
  • false : 制式代碼

sample 中,預設的密碼為 '11111111'
故,此地方設定為 false

activity_keyboard's People

Contributors

jhaoheng avatar

Watchers

 avatar

Forkers

loriyzmdog

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.