JHB-Client / JxbScaleButton

A countdown button.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

JxbScaleButton

一个倒计时闪秒的按钮控件

#支持CocoaPods引入 pod 'JxbScaleButton'

#Code

JxbScaleButton* btn = [[JxbScaleButton alloc] initWithFrame:CGRectMake(100, 200, 100, 44)];
btn.layer.cornerRadius = 5;
btn.layer.masksToBounds = YES;
[self.view addSubview:btn];
[self btnAction:btn];
[btn addTarget:self action:@selector(btnAction:) forControlEvents:UIControlEventTouchUpInside];


- (void)btnAction:(id)sender {
    NSLog(@"click");
    JxbScaleButton* btn = (JxbScaleButton*)sender;
    JxbScaleSetting* setting = [[JxbScaleSetting alloc] init];
    setting.strPrefix = @"";
    setting.strSuffix = @"秒";
    setting.strCommon = @"重新发送";
    setting.indexStart = 10;
    [btn startWithSetting:setting];
}

#For Example

About

A countdown button.

License:MIT License


Languages

Language:Objective-C 93.6%Language:Ruby 6.4%