ATBlank 0.4.3

ATBlank 0.4.3

Maintained by ablettx.



ATBlank 0.4.3

  • By
  • ablettchen

ATBlank

CI Status Version License Platform

Example

#import <ATBlank/ATBlank.h>

    __weak typeof(self) wSelf = self;
    
    // 更新空白样式配置:可选,如不配置,则取默认配置
    self.view.atUpdateBlankConf(^(ATBlankConf * _Nonnull conf) {
        conf.backgroundColor = UIColor.blackColor;
        conf.titleFont = [UIFont boldSystemFontOfSize:16];
        conf.titleColor = UIColor.whiteColor;
        conf.verticalOffset = -100;
    });
    
    
    // 创建空白对象
    ATBlank *blank = ATBlank.failureBlank;
    blank.title = @"哎呀,加载失败了";
    blank.action = ^{
        // 重置样式设置
        [wSelf.view atResetBlankConf];
    };
    
    // 关联空白对象
    self.view.ATBlank = blank;
    
    // 刷新显示
    [self.view atReloadBlank];
    

Requirements

Installation

ATBlank is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'ATBlank'

Author

ablett, [email protected]

License

ATBlank is available under the MIT license. See the LICENSE file for more info.