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.
如果我想要一个自定义滑块,它的行为看起来就像汽车的侧窗一样安静。
所以它有一个图形掩码覆盖。在背景中可以拖动“窗口”,以便“玻璃”填充整个蒙版 - 或者在“玻璃”不再存在的另一个方向上。
是否可以作为修改后的滑块,还是我必须制作一个全新的元素?
使用 UISlider 属性 minimumvalueimage 和 maximumvalueimage。您将玻璃图像添加为最小值图像,将透明图像添加为最大值图像,这会产生类似滑块窗口的效果