自定义的 iOS 应用加载指示器:BLLoader

jopen 10年前

BLLoader 是简单易用,有多种颜色,可自定义的 iOS 应用加载指示器。

Basic usage

Add BLLoader class into your project.

#import "ViewController.h"  #import "BLLoader.h"    @interface ViewController()    @property (weak, nonatomic) IBOutlet BLLoader *loader;    @end    @implementation ViewController    - (void)viewDidLoad {      [super viewDidLoad];        // Set custom lineWidth or don't set to use default lineWidth      _loader.lineWidth = 10.0;        // Set custom color or don't set to use default color       _loader.color = [UIColor grayColor];        [_loader startAnimation];  }    - (void)doSomething  {          [_loader startAnimation];      [XYZService fetchSomeData:^(){          [_loader stopAnimation];      }];  }

Requirements

  • iOS 7 or higher
  • Automatic Reference Counting (ARC)

屏幕截图

自定义的 iOS 应用加载指示器:BLLoader 

项目主页:http://www.open-open.com/lib/view/home/1442669782102