1
다음 코드로 인해 레이블의 배경색이 변경되지 않는 이유가 확실하지 않습니다. 레이블의 레이어가 애니메이션에서 배경색을 바꿀 수 없는지 생각하고 있습니다. 누군가를 바라보며 나에게 답을 줄 수 있습니다. 고마워요!uilabel.layer.backgroundcolor가 CAKeyframeAnimation에서 작동하지 않습니다.
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"];