wcontroller动画看起来像presentModalVie

wcontroller动画看起来像presentModalVie

本文介绍了显示pushviewcontroller动画看起来像presentModalViewController的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以显示 pushViewController 动画看起来像 presentModalViewController 但其背景功能 pushViewController

Is it possible to show pushViewController animation look like presentModalViewController but that has background functionality of pushViewController?

推荐答案

试试这个:

UIViewController *yourViewController = [[UIViewController alloc]init];

[UIView  beginAnimations: @"Showinfo"context: nil];
[UIView setAnimationCurve: UIViewAnimationCurveEaseInOut];
[UIView setAnimationDuration:0.75];
[self.navigationController pushViewController: yourViewController animated:NO];
[UIView setAnimationTransition:UIViewAnimationTransitionFlipFromRight forView:self.navigationController.view cache:NO];
[UIView commitAnimations];

这篇关于显示pushviewcontroller动画看起来像presentModalViewController的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-18 13:48