提供一种圆形进度条的绘制代码,可用于音视频等进度提示。
项目地址:
https://github.com/nijino/CircularProgressView.git
代码示例:
//alloc CircularProgressView instance
self.circularProgressView
= [[CircularProgressView alloc
] initWithFrame
:CGRectMake
(41, 57, 238, 238)
backColor:backColor
progressColor:progressColor
lineWidth:
30
audioPath:audioPath];
//set CircularProgressView delegate
self.circularProgressView
.delegate
= self;
//add CircularProgressView
[self.view
addSubview
:self.circularProgressView
];