我想要这样的过渡。 Custom Transition
答案 0 :(得分:0)
您可以使用 CATransition
自定义过渡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;
[YourView.view.layer addAnimation:animation forKey:@"animation"];
[self.view addSubview:bView];