I can detect the value change event from the UISlider, but now I need to detect a user releasing the slider button.
How to detect this event (or touch on slider ends) ?
Should I use the "touch up inside" event for detection ?
Thanks.
You can also use the UISlider's UIControlEventValueChanged
. Set the continuous
property to NO as to initiate when the user is done selecting a value.
[mySlider addTarget:self action:@selector(myMethod) forControlEvents:UIControlEventValueChanged];
mySlider.continuous = NO;
I've not worked with sliders, however as UISlider inherits from UIView - surely you can just tap into touchesBegan: and touchesEnded: to perform your task.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With