harshiYL
harshiYL

Reputation: 251

How to remove the thumb of UISlider in iphone?

I have two UISliders in the same view.My requirement is,when user change the value of 1st slider,the 2nd slider value should be change according to it.So,in 2nd slider I want to invisible its thumb.Although I have clear the color of its thumb,It is visible to the user.How can I solve it ?

Upvotes: 5

Views: 6328

Answers (3)

user5180348
user5180348

Reputation:

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

enter image description here

Upvotes: 6

itsji10dra
itsji10dra

Reputation: 4675

Easy One :

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

Upvotes: 8

ctatti
ctatti

Reputation: 170

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];

Upvotes: 6

Related Questions