2010-11-16 59 views
0

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

任何人都可以帮助我?

+0

看到这个问题:http://stackoverflow.com/questions/4091789/flip-viewcontroller-only- flip-the-first-time – beggs 2010-11-16 06:16:39

回答

3

我打算假设你的视图是由一个视图控制器管理的,所以你想要翻转视图。

一个相对简单的方法来做到这一点是提出使用presentModalViewController新的观点:动画:

MyViewController* mvc = [[[MyViewController alloc] init] autorelease]; 
mvc.modalPresentationStyle = UIModalPresentationFullScreen; 
mvc.modalTransitionStyle = UIModalTransitionStyleFlipHorizontal; 
[self presentModalViewController: mvc animated: YES]; 
+0

感谢它的工作 – neha 2010-11-17 10:16:49