使用pod的可以搜索到,从git项目down下来
#import "AMPActivityIndicator.h"
AMPActivityIndicator *loadInd;
//初始化等待框
loadInd = [[AMPActivityIndicator alloc]initWithFrame:CGRectMake(kViewWidth / 2 - 25, kViewHeight / 2 - 25, 50, 50)];
[loadInd setBarColor:[UIColor whiteColor]];
[loadInd setBarWidth:10];
[loadInd setBarHeight:10];
[loadInd setAperture:30];//半径
[self.view addSubview:loadInd];