nbonwit
nbonwit

Reputation: 305

UISlider TouchUpInside Not firing at ends of slider

My slider sets a flag in ValueChanged and then resets it in TouchUpInside. However, when I touch the handle and slide it all the way to the end of the slider, the TouchUpInside event doesn't get fired (and hence my flag doesn't get reset).

Do I need to handle another UISlider action when I slide the handle to the end of the slider? I tried TouchCancel thinking that maybe it was getting cancelled when my finger moved past the end of the slider bar, but that didn't work.

Upvotes: 1

Views: 540

Answers (1)

nbonwit
nbonwit

Reputation: 305

To solve this, I needed to use the TouchUpOutside action/event.

Upvotes: 2

Related Questions