2010-06-28 54 views

回答

19

這不是一個過渡,而是一個modalTransitionStyle。你可以在這裏查看文檔:http://developer.apple.com/iphone/library/documentation/uikit/reference/UIViewController_Class/Reference/Reference.html#//apple_ref/occ/instp/UIViewController/modalTransitionStyle

如果您創建一個新的UIViewController,設置其modalTransitionStyleUIModalTransitionStylePartialCurl,然後presentModalViewController:animated:它,你就會得到想要的「半捲曲頁」的效果。

+0

謝謝,這是我一直在尋找! – indragie 2010-06-28 19:55:54

6

你說的是iBook風格的翻頁動畫嗎?有一個關於它的博客一塊在這裏,鏈接到2個GitHub的項目吧:

http://oleb.net/blog/2010/06/app-store-safe-page-curl-animations/

+0

我當時並不是在尋找一個翻頁動畫,但是那個博客文章是非常棒的讀物,謝謝 – indragie 2010-06-28 19:56:33

+0

@JoostSchuur正是我在尋找的東西。謝謝。 – inwit 2012-07-29 18:39:45

1

你有沒有嘗試漫畫搖滾團結?他們有一個真正像iBook一樣的頁面,通過手指移動。我猜不是私人API,否則他們無法開啓。

可以問他們是如何做到這一點;)

0
[UIView setAnimationTransition:UIViewAnimationTransitionFlipFromLeft forView:self.containerView cache:YES];