Latest 1.0.1
Homepage https://github.com/KBvsMJ/EBTActivityIndicatorViewDemo
License MIT
Platforms ios 8.0, requires ARC
Dependencies DGActivityIndicatorView
Authors

自定义多种样式的活动指示器(支持cocoapods)

THANKS FOR DGActivityIndicatorView

使用pod指令:

 pod 'EBTDGActivityInidcatorView'

注意PS:

需要在原来DGActivityIndicatorView库中DGActivityIndicatorView.m实现文件中重写init方法:

- (instancetype)init{

    if (self = [super init]) {
        _tintColor = [UIColor whiteColor];
        _size = kDGActivityIndicatorDefaultSize;
        [self commonInit];
    }
    return self;

}

动画类型:

动画类型1 动画类型2 动画类型3 动画类型4
EBTDGActivityIndicatorAnimationTypeNineDots EBTDGActivityIndicatorAnimationTypeTriplePulse EBTDGActivityIndicatorAnimationTypeFiveDots EBTDGActivityIndicatorAnimationTypeRotatingSquares
EBTDGActivityIndicatorAnimationTypeDoubleBounce EBTDGActivityIndicatorAnimationTypeTwoDots EBTDGActivityIndicatorAnimationTypeThreeDots EBTDGActivityIndicatorAnimationTypeBallPulse
EBTDGActivityIndicatorAnimationTypeBallClipRotate EBTDGActivityIndicatorAnimationTypeBallClipRotatePulse EBTDGActivityIndicatorAnimationTypeBallClipRotateMultiple EBTDGActivityIndicatorAnimationTypeBallRotate
EBTDGActivityIndicatorAnimationTypeBallZigZag EBTDGActivityIndicatorAnimationTypeBallZigZagDeflect EBTDGActivityIndicatorAnimationTypeBallTrianglePath EBTDGActivityIndicatorAnimationTypeBallScale
EBTDGActivityIndicatorAnimationTypeLineScale EBTDGActivityIndicatorAnimationTypeLineScaleParty EBTDGActivityIndicatorAnimationTypeBallScaleMultiple EBTDGActivityIndicatorAnimationTypeBallPulseSync
EBTDGActivityIndicatorAnimationTypeBallBeat EBTDGActivityIndicatorAnimationTypeLineScalePulseOut EBTDGActivityIndicatorAnimationTypeLineScalePulseOutRapid EBTDGActivityIndicatorAnimationTypeBallScaleRipple
EBTDGActivityIndicatorAnimationTypeBallScaleRippleMultiple EBTDGActivityIndicatorAnimationTypeTriangleSkewSpin EBTDGActivityIndicatorAnimationTypeBallGridBeat EBTDGActivityIndicatorAnimationTypeBallGridPulse
EBTDGActivityIndicatorAnimationTypeRotatingSanEBTDGlass EBTDGActivityIndicatorAnimationTypeRotatingTrigons EBTDGActivityIndicatorAnimationTypeTripleRings EBTDGActivityIndicatorAnimationTypeCookieTerminator
EBTDGActivityIndicatorAnimationTypeBallSpinFadeLoader

动画类型参考这里:

点击这里参考动画类型

使用方法:

显示指示器

之前的旧的类(+)方法

[EBTDGActivityInidcatorView showActivityIndicatorView:EBTDGActivityIndicatorAnimationTypeTwoDots
withIndicatorColor:[UIColor redColor]
 withDescription:@"请求数据加载中..."];

现在新增的类(+)方法

 [EBTDGActivityInidcatorView showActivityIndicatorViewBackGroundColor:[UIColor blueColor]   
 withIndicatorType:EBTDGActivityIndicatorAnimationTypeTwoDots 
 withIndicatorColor:[UIColor redColor] withDescription:@"加载中..."
 withDescriptionTextColor: [UIColor redColor]];

移除指示器

[EBTDGActivityInidcatorView dismissActivityIndicatorView];

效果演示图1:

Image

效果演示图2:

Image

效果演示图3:

Image

效果演示图4:

Image

效果演示图5:

Image

Latest podspec

{
    "name": "EBTDGActivityInidcatorView",
    "version": "1.0.1",
    "summary": "DGActivityIndicatorView third-party library in the modified package Add New Method",
    "description": "In the DGActivityIndicatorView third-party libraries based on the modified package, to achieve a custom style indicator Add New Method",
    "homepage": "https://github.com/KBvsMJ/EBTActivityIndicatorViewDemo",
    "license": "MIT",
    "authors": {
        "KBvsMJ": "[email protected]"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source": {
        "git": "https://github.com/KBvsMJ/EBTActivityIndicatorViewDemo.git",
        "tag": "1.0.1"
    },
    "source_files": "EBTDGActivityInidcatorView/*.{h,m}",
    "exclude_files": "Classes/Exclude",
    "requires_arc": true,
    "dependencies": {
        "DGActivityIndicatorView": []
    }
}

Pin It on Pinterest

Share This