GlennChiu / GC3DFlipTransitionStyleSegue

iBooks-style 3D flip transition animation rendered in OpenGL ES 2.0 and wrapped in a UIStoryboardSegue subclass
512 stars 65 forks source link

The snapshot for sourceView is mistake when sourceViewController have navigationController #2

Open RoCry opened 11 years ago

RoCry commented 11 years ago

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

GlennChiu commented 11 years ago

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.

AnthonyFaxlandez commented 11 years ago

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

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