Search code examples
iosobjective-cuislider

iOS UISlider - change price value


I've been looking for quite some time for a solution but couldn't find the right answer for me.

I'm trying to set two sliders - one for minimum price and one for maximum price, and then create labels that will contain the prices. Both sliders will change the labels' values accordingly. I've yet to find a good way to display a price and alter it with the sliders, could you please help me?

Thank you and I'm truly sorry if this is a stupid question, I have just started iOS a few weeks ago. Thanks a bunch!


Solution

  • you can set the maximumValue property of UISlider, if you set maximumValue is 1000,then the ranges of slider`s value is 0~1000.

    is this your problem?