alskipp/ASValueTrackingSlider

Popup animated color not working when slider's ValueChanged is assigned in IB

Closed this issue · 2 comments

Hi,
I've been trying to integrate this wonderful control in my project and I needed to track the change the slider's value and it appears that doing so in Interface Builder (i.e. connecting the value changed property to an IBOutlet) will stop the slider from changing the popup and slider's tint color to their animated values.
My workaround for now is to addTarget in the viewDidLoad for now and it solves the issue.
Any thoughts?
Thanks a lot.

Hi @mohpor,
I've not been able to reproduce the bug you've experienced. Could you just confirm you're doing something like the following:

- (IBAction)updateVal:(UISlider*)sender
{
    NSLog(@"val:%f", sender.value);
}

And then connecting the IBAction in Interface Builder to the 'Value Changed' outlet on the slider? I've just tried this and the color continues to animate. Are you doing something slightly different?

I'll close this issue for now, as I've not been able to reproduce the bug. If you're still experiencing problems with the control in your project, please let me know and I'll do my best to resolve the issue.

Cheers,
Al