Thanks for the code works a treat.
I made one slight modification:
Code:
- (void) sliderAction: (UISlider *) sender
{
if (customSlider.value != 1.0) //if the value is not the max, slide this bad boy back to zero
{
[sender setValue: 0 animated: YES];
}
else {
if (customSlider.value == 1.0) //if the value is max, slide this bad boy back to zero and execute code
{
[sender setValue: 0 animated: NO];
}
// the rest of your code here.
}
}
I did this as I am having the custonSlider control my view transition. So I want the slider back at the start on the next view. So I can use it again to go back.
Looks great and you can't accidentally change views!
Great work....
Cheers