Since my previous comment was not well received, I decided to come up with a simple work for this problem if anyone is interested.
I know that this is not the most effective solution in the world, but it works the same way.
I created two methods: sliderUp and sliderChanged, related to TouchUp and ValueChanged, respectively. I also created a global variable int (timesFired if you do) so that it is initially set to zero
In the sliderUp method, I put any code that I have not missed twice. In my case, I remove the slider to the bottom if it is not at the top (for example, the slide function to unlock). I also reset timesFired returns to zero after a delay. to allow calling another method. just in case. (performSelector: withObject: afterDelay: if you don't know how to do this)
In the sliderChanged method, I first have an if statement: if (timesFired <1) {} (I also have an if statement to make sure my slider is maximum), and then include all the code that I want to execute only once, when the slider reaches its maximum value. to make sure this code runs only once, I also increase the time.
As soon as the user lifts his finger on timeFired, he will return to zero, and the whole process will begin again.
Now, as soon as I can figure out how to freeze the slider after they get to the top, I really will be pleased with this decision. (just turn it off?)
Devin
source share