How can I hide the UISlider track?

I created a slider track that is drawn on the actual background of my application, and I also drew the thumb image of UISlider. I know how to set a thumb image for a slider. But how to hide the UISlider track?

+7
iphone ios4
source share
3 answers

Use 1px transparent image for images with minimum and maximum tracks. I answered this question with the same question yesterday.

+8
source share

If you do not want to use transparent images, you can simply set the images of the tracks to empty UIImage objects:

[slider setMinimumTrackImage:[UIImage alloc] forState:UIControlStateNormal]; [slider setMaximumTrackImage:[UIImage alloc] forState:UIControlStateNormal]; 
+22
source share

Easy One:

 [_slider setThumbImage:[UIImage new] forState:UIControlStateNormal]; 
0
source share

All Articles