CrLoadingButton 1.0.2

CrLoadingButton 1.0.2

测试已测试
语言语言 Obj-CObjective C
许可证 MIT
发布最后发布2017年2月

skswhwo 维护。



  • 作者:
  • skswhwo

包含加载状态的 UIButton

alt text

安装

CrLoadingButton 通过 CocoaPods 提供。要安装它,只需将以下行添加到 Podfile

pod "CrLoadingButton"

然后运行

$ pod install

使用

- (void)addButton
{
    button.hideButtonWhenActive = true;
    [button setDidSelect:^(CrLoadingButton *button) {
        button.active = true;
        [self performSelector:@selector(endButton:) withObject:button afterDelay:1];
    }];
}

- (void)endButton:(CrLoadingButton *)button
{
    button.active = false;
}

作者

skswhwo, [email protected]

许可证

CrLoadingButton 在 MIT 许可下可用。更多信息见 LICENSE 文件。