代码库> 滑杆> ColorOpactityTool
ColorOpactityTool
关注
上传者:18665920701 分类:滑杆(Slider)
查看次数:276 下载次数:23
上传时间: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;

}
收藏
我来说两句
发表评论
您还没有登录!请登录注册
所有评论(0


下载过该代码的还下载了
综合评论
提示
sina weixin mail 回到顶部