【代码笔记】iOS-JQIndicatorViewDemo

时间:2020-12-15 17:30:14

一,效果图。

【代码笔记】iOS-JQIndicatorViewDemo

二,工程图。

【代码笔记】iOS-JQIndicatorViewDemo

三,代码。

【代码笔记】iOS-JQIndicatorViewDemo
#import "ViewController.h"
#import "JQIndicatorView.h" @interface ViewController () @end @implementation ViewController - (void)viewDidLoad {
[super viewDidLoad];
// Do any additional setup after loading the view, typically from a nib. JQIndicatorView *indicator = [[JQIndicatorView alloc] initWithType:2 tintColor:[UIColor redColor]];
indicator.center = self.view.center;
[self.view addSubview:indicator];
[indicator startAnimating]; }
【代码笔记】iOS-JQIndicatorViewDemo