Question

Referencing the documentation you can change properties of the UISlider in many ways.

How would you edit a slider in Rubymotion to set for instance a minimumValueImage?

slider = UISlider.alloc.initWithFrame([[50, 50], [200, 40]])
# ???
Was it helpful?

Solution

mininumValueImage is a property of UISlider. So you can set it like this:

slider.minimumValueImage = UIImage.imageNamed("sliderMinValueImage")
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top