I want to add a label to the slider's thumb which should show the value of the slider and changes too when thumbs is being dragged towards right side. Is it possible??
Any comments or suggestion would be appreciated.
I want to add a label to the slider's thumb which should show the value of the slider and changes too when thumbs is being dragged towards right side. Is it possible??
Any comments or suggestion would be appreciated.
Well, I subclassed the UISlider and override the methods of NSControl. You just need to change your class into storyboard
I label can be add above thumb as per requirement.
Add a
UISlider
and aUILabel
in Interface Builder. Create IBOutlets to access them in code and add a IBAction to respond to changes of the slider value.Then in your code write:
EDIT: To create the slider and label with code add this: