【代码笔记】iOS-JQIndicatorViewDemo

来源:互联网 发布:日本人用什么聊天软件 编辑:程序博客网 时间:2024/05/14 04:32

一,效果图。

 

二,工程图。

三,代码。

复制代码
#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];}
复制代码