Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
所以我需要知道我的 uiprogressview 的色调的像素长度,以便我可以在这个位置绘制。任何想法如何获取此信息?
只需使用这样的数学逻辑
CGFloat width = CGRectGetWidth(progressview.frame); CGFloat length = width * progressview.progress;