我试图使这个自定义条标签和进度条根据彼此的width..Is进行调整,这里有一个开源代码。

现在,我只使用内置的进度条,但我不知道如何调整进度条和相对于进度条长度的文本。
cell.candidatesPollProgress.backgroundColor = [UIColor blueColor];
cell.candidatesPollProgress.progressTintColor = [UIColor blueColor];
cell.candidatesPollProgress.trackTintColor = [UIColor blueColor];我从哪里开始?任何帮助都是非常感谢的。
发布于 2015-09-21 09:20:25
为了使类似于屏幕截图的UI共享,您需要使用背景色的UIView,而不是UIprogressview。将UILabel(百分比文本)的主导空间约束设置为UIView(进度视图)的尾部。将UIView的宽度调整为(progressValue)/(maxValue) * (max Width of Progress View)
https://stackoverflow.com/questions/32690779
复制相似问题