是否可以在UIProgressView中添加多种颜色?
问题描述:
基本上,我想创建一个自定义进度视图,它将根据进度值具有不同的颜色。
它应该如下所示:
Basically, I want to create a custom progressview that will have different colors depending on the progress value. It should look like the following:
[-----红色----] [ - 黄色 - ] [ - 绿色 - ]
[-----Red----][--Yellow--][-Green-]
答
或者你可以看一下这个库 https://github.com/YannickL/YLProgressBar
Or you can look at this library https://github.com/YannickL/YLProgressBar