【代码笔记】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];

}
复制代码
原文地址:https://www.cnblogs.com/yang-guang-girl/p/7975507.html