Я пытаюсь применить эту анимацию к UIBarButtonItem:слой свойство не найден на объект типа UIBarButtonitem
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.5];
[plusbutton.layer addAnimation:theAnimation forKey:@"animateOpacity"];
, но я получаю сообщение об ошибке сообщили в названии на последней строке кода. Как я могу получить доступ к слою barbuttonItem?
Хотя это может быть правдой, это не проблема. –