Reputation: 251
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
Reputation:
Simply go to xib select slider --> Utilities --> show attributes Inspectors --> Thumb Tint Colour (Clear Thumb tint colour)
Upvotes: 6
Reputation: 4675
Easy One :
[_slider setThumbImage:[UIImage new] forState:UIControlStateNormal];
Upvotes: 8
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