显示 pushviewcontroller 动画看起来像 presentModalViewController [英] Showing pushviewcontroller animation look like presentModalViewController

查看:37
本文介绍了显示 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的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆