Latest 1.0.1
Homepage https://github.com/lwy121810/WYCountdownButtonDemo
License MIT
Platforms ios 7.0, requires ARC
Authors

WYCountdownButtonDemo

一个封装的获取验证码倒计时的button

示例

//WYCountdownButton *countdownButton = [WYCountdownButton buttonWithType:UIButtonTypeCustom];
WYCountdownButton *countdownButton = [WYCountdownButton countDown];
countdownButton.frame = CGRectMake(80, 80, 100, 35);
countdownButton.backgroundColor = [UIColor redColor];
/**设置开始时的文字*/
countdownButton.title_normal = @"获取验证码";
[self.view addSubview:countdownButton];
/**设置结束后的文字*/
countdownButton.title_end = @"重新获取";
/**点击按钮之后*/
[countdownButton didTouchUpCountDownButton:^(WYCountdownButton *countDownItem, NSInteger tag) {
    /**开始计时*/
    [countdownButton startCountdown];
}];

效果图

image

Latest podspec

{
    "name": "WYCountdownButton",
    "version": "1.0.1",
    "summary": "u7b80u5355u7684u5012u8ba1u65f6u6309u94aeu5c01u88c5",
    "homepage": "https://github.com/lwy121810/WYCountdownButtonDemo",
    "license": "MIT",
    "authors": {
        "lwy121810": "[email protected]"
    },
    "platforms": {
        "ios": "7.0"
    },
    "source": {
        "git": "https://github.com/lwy121810/WYCountdownButtonDemo.git",
        "tag": "1.0.1"
    },
    "source_files": "WYCountdownButton/*.{h,m}",
    "requires_arc": true
}

Pin It on Pinterest

Share This