I am having simple animation (actually two of them, but will show only one for simplicity of an example) which continuously fades in, and fades out a label. So, when I scroll the tableview in such a way that some animated cells disappear, and then scroll back, those cells aren't animated anymore.
Here is the animation:
options: [.Repeat, .Autoreverse, .AllowUserInteraction],
self.stateLabel.alpha = 0.5
}, completion: nil)
Well the problem is not resetting the alpha value of the UI element after displaying it. Because
UITableView would restore but not recreate the cell if
dequeueReusableCellWithIdentifier function is being used. Thus resetting the alpha value on
cellForRowAtIndexPath and animating the view in
willDisplayCell would solve the problem you were facing.