0

In the picture below, I have drawn on the element I am trying to figure out how to make. It is a cross between a UISlider and a UIProgressview. It has the style and look of a UIProgressview, but has a ...slider like a UISlider. How would I make one of these regularly? Nearly every music player has them... :|

Ryan Copley
  • 873
  • 1
  • 10
  • 26
  • possible duplicate of [UISlider with ProgressView combined](http://stackoverflow.com/questions/4495433/uislider-with-progressview-combined) – jrturton May 14 '12 at 05:39
  • Okay, try to add another snapshot without the nudie pic in it. –  May 14 '12 at 16:58

1 Answers1

1

Are you talking about the volume slider or the track progress?

If it is the volume slider, its just the normal UISlider.

And if you're talking about the track progress, then it is also a UISlider. The difference is that every time a second passes in the track, it updates the position of the slider relative to the position in the track. Then when the user slides the slider it updates the position of the track relative to the position of the slider

Hope this helps

Slayter
  • 1,172
  • 1
  • 13
  • 26
  • I'm asking for the styling, as in it has the white light on top and the different scrubber handle, as the UISlider is much more bland. (Just a blue gradient and a circle, this one is blue with a shine and a shine'd scrubber) – Ryan Copley May 14 '12 at 03:03
  • 2
    The styling for the volume slider comes from the `MPVolumeView` class. If you want to use a slider like that for custom functionality, you'll likely have to provide custom images with the appearance you're looking for for the `currentMinimumTrackImage`, `currentMaximumTrackImage`, and `currentThumbImage` properties in your `UISlider`. Or you could subclass `UISlider` entirely and customize the look further. – Andrew R. May 14 '12 at 03:30