ColorOpactityTool
查看次数:793
下载次数:45
上传时间:2020-08-13
大小:77 B
颜色透明度调整:0-100
- (void)viewDidLoad {
[super viewDidLoad];
UIProgressView *progress = [[UIProgressView alloc]initWithFrame:CGRectMake(0, 100, 100, 40)];
[self.view addSubview:progress];
oooview = [[ColorProgressView alloc]initWithFrame:CGRectMake(20, 200, 300, 40)];
oooview.endColor = [UIColor redColor];
oooview.delegate =self;
[self.view addSubview:oooview];
}
-(void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event{
oooview.endColor = [UIColor orangeColor];
}
-(void)colorOpacityChange:(int)value andPercentValue:(int)percent{
}
-(void)colorOpacityCompositeChange:(UIColor *)compositeColor andPercentValue:(int)percent{
self.view.backgroundColor = compositeColor;
}
收藏