AVPlayerLayer에서 "축소"애니메이션을 만들려고하고 있지만 비디오 콘텐츠가 화면에서 사라지 자마자. AVPlayerLayer를 유지하면서 UIView를 애니메이트하지만 AVPlayerLayer는 작동하지 않습니다. 그것을 애니메이션화하는 올바른 방법은 무엇입니까?AVPlayerLayer 애니메이션 축소
CGRect oldBounds = playerLayer.bounds;
CGRect newBounds = oldBounds;
newBounds.size = CGSizeZero;
CABasicAnimation *animation = [CABasicAnimation animationWithKeyPath:@"bounds"];
animation.duration = 5.f;
animation.beginTime = CACurrentMediaTime();
animation.fromValue = [NSValue valueWithCGRect:oldBounds];
animation.toValue = [NSValue valueWithCGRect:newBounds];
[playerLayer addAnimation:animation forKey:@"shrink"];
해결 방법을 찾으셨습니까? 나는 AVPlayerLayer가 UIView를 지원하는 것과 비슷한 것을하려고 노력하고있다. – jlw
같은 문제가 있습니다. – Greensource