I have customized track image and progress image, the point is I don't want them to be with the same width. But it seems like when I use setTrackImage and setProgressImage, they always keep the same wide. Now my implementation turns out as the first image, but I want the effect just like the second image. current effect

expected effect

有帮助吗?

解决方案

Yes, use UISlider and then remove the thumb image by simply adding an empty image.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top