2010-11-16 82 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