gabriel_vincent
gabriel_vincent

Reputation: 1250

How to customize MPVolumeView in iOS?

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?

Upvotes: 2

Views: 2259

Answers (2)

coco
coco

Reputation: 3126

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

Upvotes: 3

gabriel_vincent
gabriel_vincent

Reputation: 1250

You can't. You can only customize UISLider:

[slider setThumbImage:[UIImage imageNamed:@"sliderThumb.png"] forState:UIControlStateNormal];

Upvotes: 0

Related Questions