UIActivityIndicatorView(FWViewPlugin)

@interface UIActivityIndicatorView (FWViewPlugin)

系统指示器默认实现指示器视图协议

  • 设置或获取指示器大小,默认中{20,20},大{37,37}

    Declaration

    Objective-C

    @property (nonatomic) CGSize size;
  • 指示器进度,大于0小于1时开始动画,其它值停止动画。同setProgress:animated:

    Declaration

    Objective-C

    @property (nonatomic) CGFloat progress;
  • 设置指示器进度,大于0小于1时开始动画,其它值停止动画。同setProgress:

    Declaration

    Objective-C

    - (void)setProgress:(CGFloat)progress animated:(BOOL)animated;
  • 快速创建指示器,可指定颜色,默认白色

    Declaration

    Objective-C

    + (nonnull UIActivityIndicatorView *)fw_indicatorViewWithColor:
        (nullable UIColor *)color;