tags:

views:

88

answers:

2

Hello,

I would like to customize my UISlider like this screenshot :

alt text

I'm using setMinimumTrackImage and setMaximumTrackImage method with a non strechable image but it doesn't work.

The image is stretched and proportion are kept.

Any idea ?

Thanks.

Thierry

+3  A: 

You might try setting invisible images for both minimumTrackImage and maximumTrackImage to transparent, and then sticking a UIImageView behind it.

Ben Gottlieb
A: 

You need to change the frame size of your slider, all your are changing are the values

UISlider *customSlider = [[UISlider alloc] initWithFrame:CGRectMake(X,Y,Width,Heigth)];

I hope this helps

Jaba