iOS 圆环进度条,渐变圆环进度条,view一样的初始化即可,超简便

PZXCircleView

圆环进度条,渐变圆环进度条
下载地址:https://github.com/PZXforXcode/PZXCircleView

iOS 圆环进度条,渐变圆环进度条,view一样的初始化即可,超简便_第1张图片
效果图

@property(strong,nonatomic)PZXCircleView *circleProgressView;
@property(strong,nonatomic)PZXSharpCircleView *pzxsharpCircleView;


-(void)initPZXSharpCircle{
    
    self.pzxsharpCircleView = [[PZXSharpCircleView alloc]initWithFrame:CGRectMake(150, 200, 200, 200)];
    self.pzxsharpCircleView.pzx_progress = 0.0;
    self.pzxsharpCircleView.backgroundColor = [UIColor clearColor];
    [self.view addSubview:self.pzxsharpCircleView];
    
}
-(void)initPZXCircle{
    
    self.circleProgressView = [[PZXCircleView alloc]initWithFrame:CGRectMake(100, 100, 100, 100)];
    self.circleProgressView.progress = 0.0;
    self.circleProgressView.backgroundColor = [UIColor clearColor];
    [self.view addSubview:self.circleProgressView];
}

- (void)changeProgress:(UISlider *)slider {
    
    self.circleProgressView.progress = slider.value;
    self.pzxsharpCircleView.pzx_progress = slider.value;
//    [self.circleProgressView setNeedsDisplay];
}


下载地址:https://github.com/PZXforXcode/PZXCircleView

你可能感兴趣的:(iOS 圆环进度条,渐变圆环进度条,view一样的初始化即可,超简便)