Hi Stackoverflow,
I'm trying to create a little glow-animation with Core Animation. Animation works fine so far. Problem is, the animation is used in a table cell. When the animation is added to a layer that is currently in a cell that is not yet visible (without scrolling), the animation is not started somehow? Seems as if CoreAnimation won't animate layers that are not currently visible?
My code is:
CABasicAnimation *animation = [CABasicAnimation animationWithKeyPath:@"opacity"];
[animation setFromValue:[NSNumber numberWithFloat:0.0]];
[animation setToValue:[NSNumber numberWithFloat:1.0]];
[animation setDuration:self.currentBlinkFrequency];
[animation setTimingFunction:[CAMediaTimingFunction functionWithName:kCAMediaTimingFunctionLinear]];
[animation setAutoreverses:YES];
[animation setRepeatCount:HUGE_VALF];
[[self.signalImage layer] addAnimation:animation forKey:@"opacity"];