水波图;支文字在2种颜色之间交换显示;
查看次数:2409
下载次数:481
上传时间:2016-12-29
大小:226 B
https://github.com/k373379320/ZBPercentWaterView
//创建 支持xib创建,init,initWithFrame;
self.percentView = [[ZBPercentWaterView alloc] initWithFrame:CGRectMake(100, 100, 200, 200)];
[self.view addSubview:self.percentView];
//设置进度:
[self.percentView setupProgress:(arc4random()0)/100.00];
//具体细节:
static CGFloat kWaterViewMaxHeight = 200;
static CGFloat kShowLaberFont = 72;
@property (assign, nonatomic) CGFloat lineWidth;
@property (assign, nonatomic) CGFloat topLineWidth;
收藏