如何在UISlider上放置图像? [英] How to place image on UISlider?
本文介绍了如何在UISlider上放置图像?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我必须放置一个滑块,并想在滑块上放置图像.我想要的滑块是这个
I have to place a slider and want to place an imge on slider. the slider i want is this
有人可以帮助我吗?
推荐答案
See the UISlider class reference. You want to set setThumbImage:forState:
as well as setMinimumTrackImage:forState:
and setMaximumTrackImage:forState:
. Use the same images for the minimum and maximum track images, and use UIControlStateNormal
for the state.
这篇关于如何在UISlider上放置图像?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文