自定義的 iOS 應用加載指示器:BLLoader
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)
屏幕截圖
本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!