WBLoadingIndicatorView 1.1.4

WBLoadingIndicatorView 1.1.4

wenmobo维护。



WBLoadingIndicatorView

中文说明






基于CALayer封装加载等待动画,目前支持6种类型动画:

typedef NS_ENUM(NSInteger, WBLoadingAnimationType) {
WBLoadingAnimationcircleStrokeSpinType,
WBWBLoadingAnimationBallPulseType,
WBWBLoadingAnimationBallClipRotateType,
WBWBLoadingAnimationBallClipRotatePulseType,
WBWBLoadingAnimationBallClipRotateMultipleType,
WBWBLoadingAnimationBallTrianglePathType,
WBLoadingAnimationBallSurround
};

要求

  • iOS 8+
  • Xcode 8+

安装

Cocoapods安装

WBLoadingIndicatorView 通过 CocoaPods 提供使用。安装时,只需要在 Podfile 中添加以下行

pod 'WBLoadingIndicatorView'

手动安装

将“WBLoadingIndicatorView”文件夹拖入工程即可。

使用说明

  • 使用示例
WBLoadingIndicatorView *indicatorView = [WBLoadingIndicatorView wb_showIndicatorAddTo:self.view];
indicatorView.type = WBLoadingAnimationBallSurround;
indicatorView.indicatorSize = CGSizeMake(45, 45);
indicatorView.backgroundView.backgroundColor = [UIColor whiteColor];
indicatorView.bezelView.style = WBLoadingIndicatorBackgroundSolidStyle;
indicatorView.bezelView.backgroundColor = [UIColor clearColor];
indicatorView.indicatorColor = [UIColor orangeColor];

作者

作者:wenbo
QQ:1050794513
邮箱:[email protected]

更新

  • 2018-09-17(1.1.4):优化layer动画添加时机,修复更新view大小,动画闪烁问题,参考MyLinearLayout视图布局完成block。
  • 2018-09-16(1.1.1):重构成型,添加WBLoadingAnimationBallSurround动画
  • 2018-09-11(1.0.1):添加背景模糊效果

许可证

WBLoadingIndicatorView遵循MIT许可证。有关更多信息,请参阅LICENSE文件。