MPFoldTransition icon indicating copy to clipboard operation
MPFoldTransition copied to clipboard

Hard switch in UINavigationBar when using UINavigationController category

Open mickeyl opened this issue 11 years ago • 2 comments

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.

mickeyl avatar May 03 '13 10:05 mickeyl

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

viking2009 avatar May 03 '13 10:05 viking2009

@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?

mickeyl avatar May 04 '13 14:05 mickeyl