0
我为Section创建UIView,并为Row创建一次。然后我创建方法:如何为UITableViewCell创建bacgroundColor动画?
-(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];
}];
}
但是,如果我调用此方法,我不查看任何动画。背景颜色变化非常快,而不动画...:((WTF?
我需要创造,如果捕获的事件节和排闪烁的背景颜色效果
是的,它的工作,非常感谢! – Bimawa
很酷,只要确保你的'subview'可以处理设备旋转(正确调整自身) –
好的,thx ..其可怕的细微差别 – Bimawa