mpospese / MPFoldTransition

Easily add custom folding and page-flipping transitions to UIViews and UIViewControllers
http://markpospesel.com/2012/05/07/mpfoldtransition/
1.81k stars 238 forks source link

Hard switch in UINavigationBar when using UINavigationController category #16

Open mickeyl opened 11 years ago

mickeyl commented 11 years ago

Hi,

I'm using the category on UINavigationController to animate push/pop using a fold transition. The animation of the content area is perfect, however at the end of the animation, the UINavigationBar is hard switched over to the new content, which looks a bit disturbing. Is there a way to fix this, i.e. using a crossfade on the UINavigationBar?

I tried to create a cross-fade animation of the UINavigationBar main layer in the transition completion block where the non-animated push is being performed, but that didn't change anything.

viking2009 commented 11 years ago

http://developer.apple.com/library/ios/#documentation/uikit/reference/UINavigationController_Class/Reference/Reference.html#//apple_ref/occ/instm/UINavigationController/setNavigationBarHidden:animated:

mickeyl commented 11 years ago

@viking2009 Thanks for your comment, I'm not sure whether I understand the relevance of setNavigationBarHidden:animated: in the context of the hard switching over of the old title and navigation buttons to the new title and navigation buttons. Could you slightly enhance your comment?