Closed chlebta closed 8 years ago
Hi,
I don't understand your problem, please can you share an image (screenshot or whatever) to help me visualize it?
Best
@yannickl , check this :
as you can see there's like black gradient there and her's my code :
//progress bar
_progressBar = [[YLProgressBar alloc] initWithFrame:CGRectMake(0.f, 10.f, self.view.frame.size.width, 50.f)];
_progressBar.type = YLProgressBarTypeFlat;
_progressBar.progressTintColor = secondaryColor;
_progressBar.hideStripes = YES;
[self.view addSubview:_progressBar];
Ok, I understand,
The progressTintColor
property automatically add the gradient. You should use the progressTintColors
instead:
_progressBar.progressTintColors = @[secondaryColor];
This is confusing. I think the ProgressTintColor property should not include auto gradient function. It takes me sometime to find out how to disable the gradient, thanks anyway!
@nightwolf-chen With the latest version you can use the uniformTintColor
property instead #45
Hello, How to remove gradient from flatProgress bar simple bar without black gradient at the begin