iosuislideruicontrol

Use UISlider without user interaction


I've got a customized UISlider that I want to use to display information to the user with and I don't want the user to be able to interact with the slider. I've tried

mySlider.enabled = NO;

but the slider becomes greyed out, which does not look the way I want it to look.

So, how do I set a UIControl to disabled without "greying" it out.


Solution

  • mySlider.userInteractionEnabled = NO;