翻转ipad中的视图

时间:2010-11-16 06:13:48

标签: ipad flip

我在视图上有一个按钮,点击下一个视图应在翻转视图中打开。

任何人都可以帮助我吗?

1 个答案:

答案 0 :(得分:3)

我将假设您的视图由视图控制器管理,您想要翻转的视图也是如此。

一种相对简单的方法是使用presentModalViewController呈现新视图:animated:

MyViewController* mvc = [[[MyViewController alloc] init] autorelease];
mvc.modalPresentationStyle = UIModalPresentationFullScreen;
mvc.modalTransitionStyle = UIModalTransitionStyleFlipHorizontal;
[self presentModalViewController: mvc animated: YES];
相关问题