1
는 내가있는 CALayer의 애니메이션 그림자 경로가 :코어 애니메이션 : 확인 내용 다음과 그림자 경로
CABasicAnimation* shadowAnimation = [CABasicAnimation animationWithKeyPath: @"shadowPath"];
shadowAnimation.duration = duration;
shadowAnimation.timingFunction = function;
shadowAnimation.fromValue = (id) panelView.layer.shadowPath;
panelView.layer.shadowPath = [UIBezierPath bezierPathWithRoundedRect: CGRectSetOriginM20 (panelView.bounds, CGPointZero) cornerRadius: cornerRadius].CGPath;
[panelView.layer addAnimation: shadowAnimation forKey: @"shadow"];
panelView.layer.shadowOpacity = 1.0;
내가있는 UIImage로 설정하여있는 CALayer의 컨텐츠 속성을 자산을 사용하여 동일한 효과를 다시 만들어야합니다. bounds
을 그림자와 동일한 애니메이션을 따르도록 할 수있는 방법이 있습니까?