我不确定为什么下面的代码不会改变标签的背景颜色。我在想标签的图层是否不能改变动画中的背景颜色。希望有人能给我一个答案。非常感谢!
    CAKeyframeAnimation *animation = [CAKeyframeAnimation animation];
    animation.values = [NSArray arrayWithObjects:
                        (id) [UIColor yellowColor].CGColor,
                        (id) [UIColor redColor].CGColor,
                        (id) [UIColor blueColor].CGColor, nil];
    animation.duration = 3.0f;
    animation.autoreverses = NO;
    [updateRecordLabel.layer addAnimation:animation forKey:@"backgroundColor"];