私にはjumpBarPortraitとjumpBarLandscapeの2つのビューがあります。この2つの間でアニメーション化したいので、つまり、ポートレートをフェードインさせ、ランドスケープをフェードアウトさせます...これまでのところ、1つをフェードインできますが、方法がわかりません。もう一方をフェードアウトさせます...
これは現在の私のコードです。
[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];
どんな助けでも大歓迎です。