在不使用图像的情况下增加 UISlider 高度 [英] Increase UISlider height without using image
本文介绍了在不使用图像的情况下增加 UISlider 高度的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想使用颜色或任何其他方式增加 UISlider 高度.我不想使用图像.我不想设置 setMaximumTrackImage &设置最小轨道图像.我该如何实现?
I want to increase UISlider height using color or any other way. I do not want to use image. I do not want to set setMaximumTrackImage & setMinimumTrackImage. How can i implement this ?
推荐答案
如果不想子类化,可以对滑块应用缩放变换
If you don't want to subclass, you can apply scale transform to the slider
slider.transform = CGAffineTransformMakeScale(2.0f, 2.0f);
这篇关于在不使用图像的情况下增加 UISlider 高度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文