简体   繁体   中英

UIProgressView not reflecting first 0.05 of progress

It seems to me that when setting a UIProgressView s progress to a value between >0.0 and 0.05 always shows a progress of 0.05 (no matter the value).

I understand that this makes sense from a UX perspective, but does UIProgressView have a property to turn it off?

Judging from the PlayGround below and from @Rohan Bhale's comment, UIProgressView scales it's progress layer according to the view's frame size. The smaller the width, the less difference you will see at small .progress ranges.

At 200 points width (as depicted below), there are in fact noticeable differences in your 0 .. 0.05 range.

进展

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM