azt

AZTools

常用Category和工具类

Showing:

Popularity

Downloads/wk

0

GitHub Stars

121

Maintenance

Last Commit

7mos ago

Contributors

1

Package

Dependencies

0

License

MIT

Categories

Readme

AZTools Build Status

快速集成

pod 'AZTools'

常用分类

UIView+AZGradient
UIViewController+AZPushAndPop
NSObject+AZSafeArea
UIButton+AZCountDown
- (void)viewWillAppear:(BOOL)animated {
    [super viewWillAppear:animated];
    // 恢复倒计时
    [self.button az_cd_recover];
}

- (void)viewDidLoad {
    [super viewDidLoad];
    // ...   
  
    self.button.az_cd_identify = @"AZCountDownDemoBtn";
    self.button.az_cd_count = 60;
    self.button.az_cd_countdownBlock = ^(NSInteger countDown, UIButton * _Nonnull button) {
        [button setTitle:[NSString stringWithFormat:@"%lds",(long)countDown] forState:UIControlStateDisabled];
    };
    self.button.az_cd_endBlock = ^{
        NSLog(@"倒计时结束!");
    };
}

- (IBAction)startCountDown:(UIButton *)sender {
    // 用户点击开始倒计时
    [sender az_cd_start];
}

工具类

AZServiceDate

  • 获取服务器时间,设置成功后,即使用户修改手机时间,也能获取到正确的服务器时间。

AZBlockHelper

  • 获取Block的签名、参数个数

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100