How to remove the thumb of UISlider in iphone? How to remove the thumb of UISlider in iphone? xcode xcode

How to remove the thumb of UISlider in iphone?


Easy One :

[_slider setThumbImage:[UIImage new] forState:UIControlStateNormal];


Simply set the image for the thumb to be nil

UIImage *empty = [UIImage new];[theSlider setMinimumTrackImage:[UIImage alloc] forState:UIControlStateNormal];[theSlider setMaximumTrackImage:[UIImage alloc] forState:UIControlStateNormal];


Simply go to xib select slider --> Utilities --> show attributes Inspectors --> Thumb Tint Colour (Clear Thumb tint colour)

enter image description here