6
A
回答
12
controller.modalTransitionStyle = UIModalTransitionStylePartialCurl;
[self presentModalViewController:controller animated:YES];
UIModalTransitionStyle 過渡樣式。以下是四種不同的過渡樣式。 「UIModalTransitionStylePartialCurl」是你所追求的。
typedef enum {
UIModalTransitionStyleCoverVertical,
UIModalTransitionStyleFlipHorizontal,
UIModalTransitionStyleCrossDissolve,
UIModalTransitionStylePartialCurl,
} UIModalTransitionStyle;
希望這有助於!
0
我想這可能是你在找什麼:
[UIView beginAnimations:nil context:nil];
[UIView setAnimationDuration:1];
[UIView setAnimationBeginsFromCurrentState:YES];
[UIView setAnimationTransition:UIViewAnimationTransitionCurlUp forView:self.view cache:YES];
[UIView commitAnimations];
1
嘗試以下。在這種情況下,Settings是一個sublcass UIViewController,它被放置在頁面curl後面。 self也是一個正在顯示的UIViewController,它的視圖將保持在最前面。
-(void)presentSettings{
Settings *eset = [[Settings alloc] init];
//eset.modalPresentationStyle = UIModalPresentationFullScreen;
eset.modalTransitionStyle = UIModalTransitionStylePartialCurl;
[self presentModalViewController:eset animated:YES];
}
請注意,Curl僅適用於iOS 3.2及更高版本。
+0
`modalPresentationStyle`做什麼? – 2010-12-09 18:18:59
相關問題
- 1. Android頁面捲曲動畫
- 2. 頁面捲曲動畫在android?
- 3. 部分頁面捲曲動畫
- 4. 與頁面捲曲動畫IOS
- 5. 安卓:頁面捲曲動畫效果
- 6. iPhone頁面捲曲過渡動畫
- 7. 頁面捲曲動畫 - 問題
- 8. 如何捲曲twitter頁面
- 9. 如何捲曲ajax頁面?
- 10. 如何添加動態文本瀏覽頁面到Android頁面捲曲動畫
- 11. 如何更改頁面捲曲動畫的UIPageViewController方向
- 12. 如何在webView中給頁面捲曲動畫?
- 13. 如何將完整頁面捲曲動畫關聯到modalviewcontroller?
- 14. 如何創建動畫信用頁面?
- 15. UIPageViewController硬封面以及頁面捲曲動畫
- 16. ViewPager頁面捲曲
- 17. Xpages - 創建頁面動畫
- 18. 由harism捲曲的Android頁面,從左至右捲曲頁面
- 19. 頁面捲曲動畫在面對頁面模式下不顯示全屏
- 20. 頁面捲曲動畫與透明UIImageView(iOS)
- 21. 用自定義頁面捲曲動畫推視圖控制器
- 22. 在意圖在Android頁面捲曲動畫
- 23. ios查看過渡動畫,頁面捲曲
- 24. 頁面捲曲動畫的默認持續時間
- 25. UIView動畫 - 水平頁面捲曲...就像一本書?
- 26. 添加頁面捲曲像層(不是動畫)
- 27. 在swift2,UIPageviewController頁面捲曲動畫掛在快速掃
- 28. 頁面捲曲與片段或活動
- 29. 如何在ePub閱讀器應用程序中添加頁面捲曲動畫
- 30. https登錄頁面捲曲
我實際上正在尋找一個HALF頁面捲曲,頂視圖不會消失,而是保持可見。 – 2010-12-09 18:15:44