¿Cómo funciona la CATransition?
tengo dos vistas, una es aView, otra es bView, hay un botón en aView, hago clic en el botón, saltaré a bView, vea el código
-(IBAction)jump2b:(id)sender{
CATransition *animation = [CATransition animation];
animation.delegate = self;
animation.duration = 0.25f;
animation.timingFunction = UIViewAnimationCurveEaseInOut;
animation.fillMode = kCAFillModeForwards;
animation.removedOnCompletion = NO;
animation.type = kCATransitionPush;
animation.subtype = kCATransitionFromTop;
[bView.view.layer addAnimation:animation forKey:@"animation"];
}
no puede funcionar bien, puede saltar, entonces ¿qué puedo hacer? gracias