I create UIView for Section and once for Row. Then i create method:
-(void)startBlinking {
[UIView setAnimationsEnabled:YES];
[UIView animateWithDuration:5 delay:0.0 options:UIViewAnimationOptionAllowUserInteraction|UIViewAnimationOptionCurveEaseInOut animations:^
{
[self setBackgroundColor:[UIColor yellowColor]];
} completion:^(BOOL finished)
{
[UIView animateWithDuration:5 delay:0.0 options:UIViewAnimationOptionAllowUserInteraction|UIViewAnimationOptionCurveEaseInOut animations:^
{
[self setBackgroundColor:[UIColor whiteColor]];
} completion: NULL];
}];
}
But if i call this method i not view any animations. background color change very fast without animation… :(( WTF??
i need create blink background color effect for sections and rows if catch events.
backgroundColortransitions are not animatable. I would suggest you add a subview to your cell with ansubview.alpha = 0.0fand then in the animation block you can transition the alpha to1.0. This will get you the desired effect.