나는 두 가지보기, jumpBarPortrait 및 jumpBarLandscape 두 가지 사이에 애니메이션을 적용하고 싶습니다. 다른 말로 표현하면 풍경이 희미 해지는 동안 페이드 인을 원합니다 ... 지금까지 할 수 있습니다.CATransaction 애니메이션 페이드 아웃 uiviews
은 현재의 약자로이 내 코드입니다 ..
[CATransaction begin];
CATransition *animation = [CATransition animation];
animation.type = kCATransitionFade;
animation.duration = animationSpeed;
[self.view insertSubview:jumpBarContainerPortrait belowSubview:actionTabBar];
[[jumpBarContainerPortrait layer] addAnimation:animation forKey:@"Fade"];
[CATransaction commit];
어떤 도움을 크게 감상 할 수있다 ... 하나 퇴색하지만 난 다른 페이드를 가지고하는 방법을 잘 모르겠습니다.
[CATransaction flush]를 잊지 마세요. –