Animar a cor de fundo do UIButton de WhiteColor para RedColor

Estou tentando criar um tipo de efeito de pulso colorido, animando a cor de fundo de umUIButton para mudar continuamente de uma cor (WhiteColor) para outra (RedColor). Estou tentando usarCABasicAnimation para mudar o Opacity, mas também não posso fazê-lo funcionar com cores.

    CABasicAnimation *theAnimation;

    theAnimation=[CABasicAnimation animationWithKeyPath:@"opacity"];
    theAnimation.duration=1.0;
    theAnimation.repeatCount=HUGE_VALF;
    theAnimation.autoreverses=YES;
    theAnimation.fromValue=[NSNumber numberWithFloat:1.0];
    theAnimation.toValue=[NSNumber numberWithFloat:0.0];
    [BigButton.layer addAnimation:theAnimation forKey:@"animateOpacity"];

Todas as sugestões serão apreciadas. obrigado

questionAnswers(3)

yourAnswerToTheQuestion