GlennChiu/GC3DFlipTransitionStyleSegue

The snapshot for sourceView is mistake when sourceViewController have navigationController

Opened this issue · 2 comments

Before segue, the sourceViewController have a navigationBar, but while the segue the navigation missed.

The source view controller is embedded in to the navigation controller. The navigation bar is part of the navigation controller and the segue class only takes a snapshot of the source view.

A way to fix this is to take a snapshot of the underlying window of the source view. I'm not a fan of doing this, but it might work.

I modified flipViewController.sourceView to [[self.sourceViewController navigationController] view];

With that change it grabs the navigation controller along with everything in it.