Giter VIP home page Giter VIP logo

uibutton-svcode's Introduction

UIButton-SVCode

将 UIButton-SVCode.h和UIButton-SVCode.m 拖入项目中

在需要使用的类导入 #import "UIButton+Code.h"

使用

 [sender setCountdown:10];

如果使用下列方法,需要在页面加载完成后,调用检测函数

[sender setCountdown:20 keywords:@"loginCode"];
// 检测函数 检测关于loginCode倒计时,是否存在没有走完的情况
[sender checkCountdown:@"loginCode"];
///设置倒计时
- (void)setCountdown:(NSTimeInterval )timeOut;

/**

 *

 * 设置倒计时和关键词 (例如 注册验证码 登录验证码)

 * 设置后 该页面销毁后,重进入时倒计时不会重新设为0

 */

- (void)setCountdown:(NSTimeInterval )timeOut keywords:(NSString *)keyWord;

/**

 * 需要手动调用检测方法 和setCountdown:keywords:配套使用

 */

- (void)checkCountdown:(NSString *)keyWord;



///手动结束倒计时 当前页面销毁之前,请务必调用

- (void)cancelCountdown;

uibutton-svcode's People

Contributors

qingweiios avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

pangyunxiu

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.