2

I need to make a custom thumb for my volume slider, which I need it to be a MPVolumeView. Is there any way I can change it?

Charles
  • 50,943
  • 13
  • 104
  • 142
gabriel_vincent
  • 1,230
  • 3
  • 16
  • 35

2 Answers2

3

Update: note that in iOS 6, there are built-in methods for customizing the MPVolumeView slider, similar to the methods for UISlider:

- (void)setVolumeThumbImage:(UIImage *)image forState:(UIControlState)state
- (void)setMaximumVolumeSliderImage:(UIImage *)image forState:(UIControlState)state
- (void)setMinimumVolumeSliderImage:(UIImage *)image forState:(UIControlState)state
coco
  • 2,998
  • 1
  • 35
  • 58
0

You can't. You can only customize UISLider:

[slider setThumbImage:[UIImage imageNamed:@"sliderThumb.png"] forState:UIControlStateNormal];
gabriel_vincent
  • 1,230
  • 3
  • 16
  • 35