GFLoadingAnimationView 0.1.4

GFLoadingAnimationView 0.1.4

Fanfa 维护。



GFLoadingAnimationView

CI Status Version License Platform

示例

Alt Text

Alt Text

一个简单的加载动画视图来阻止 UI。使用简单且可配置。您还可以使用 GFLoadingPercentualView 来显示带有百分比状态的加载动画。

要运行示例项目,请克隆仓库,然后首先从 Example 目录中运行 pod install

安装

GFLoadingAnimationView 可通过 CocoaPods 获取。要安装它,只需将以下行添加到您的 Podfile 中

pod 'GFLoadingAnimationView'

使用方法

GFLoadingAnimationView

#import "GFLoadingAnimationView.h"

// show
[GFLoadingAnimationView showLoadingView];

// hide
[GFLoadingAnimationView hideLoadingView];

GFLoadingPercentualView

#import "GFLoadingPercentualView.h"

// show
[GFLoadingPercentualView showLoadingView];

// hide
[GFLoadingPercentualView hideLoadingView];

配置

GFLoadingAnimationView

//	background
[GFLoadingAnimationView setCircleSize:100];
[GFLoadingAnimationView setCircleBackgroundColor:[UIColor groupTableViewBackgroundColor]];
//	spinner
[GFLoadingAnimationView setSpinnerStrokeColor:[UIColor grayColor]];
[GFLoadingAnimationView setSpinnerStrokeWidth:3];
//	image
[GFLoadingAnimationView setImageSizePerc:0.4];
[GFLoadingAnimationView setImage:[UIImage imageNamed:@"test"]];

GFLoadingPercentualView

//	background
[GFLoadingAnimationView setCircleSize:100];
[GFLoadingAnimationView setCircleBackgroundColor:[UIColor groupTableViewBackgroundColor]];
//	spinner
[GFLoadingAnimationView setSpinnerStrokeColor:[UIColor grayColor]];
[GFLoadingAnimationView setSpinnerStrokeWidth:3];
//	image
[GFLoadingAnimationView setImageSizePerc:0.4];
[GFLoadingAnimationView setImage:[UIImage imageNamed:@"test"]];
//	label
[GFLoadingPercentualView setLabelFontSize:20];
[GFLoadingPercentualView showLabel:false];

作者

Guido Fanfani, [email protected]

许可协议

GFLoadingAnimationView在MIT许可下可用。有关更多信息,请参阅LICENSE文件。