Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

UISlider evaluate the result once they have stopped changing the value

Tags:

uislider

I have a UI slider that is continuous. I take the value as it changes and use it to calculate a value that i put into a textfield.

I have the value changed outlet linked to the method that does the calculation and that works ok but i also want a method to fire once the user lifts off the slider that effectively gives a once time evaluation of the final set value.

I have tried connecting the the did end on exit method and others available .

like image 514
MB. Avatar asked Dec 04 '25 19:12

MB.


1 Answers

Use the UISlider's UIControlEventTouchUpInside event and, if necessary the UIControlEventTouchUpOutside event. These events will be triggered when the user lifts their finger off the UISlider. Which one is called will depend on whether the finger is inside or outside the bounds of the UISlider when it is lifted.

like image 182
beev Avatar answered Dec 11 '25 04:12

beev



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!