第三方等待框AMPActivityIndicator

来源:互联网 发布:算法工程师的数学工具 编辑:程序博客网 时间:2024/06/06 20:02

使用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];