GlennChiu/GC3DFlipTransitionStyleSegue

Flipping back to source view controller

Opened this issue · 2 comments

I have this working perfectly segueing from view controller A to view controller B. When I dismiss B though it does the standard model dismissal animation. I noticed in your video you were able to get back to your original view controller fully animated. Am I missing something?

MSch commented

Pretty sure that's not supported.

I'm currently looking into how to accomplish flipping back, the relevant code should be in here:

@implementation GC3DFlipTransitionStyleSegue

- (void)perform
{
    GC3DFlipTransitionStyleViewController *flipViewController = [[GC3DFlipTransitionStyleViewController alloc] init];

    flipViewController.sourceView = [self.sourceViewController view];
    flipViewController.destinationView = [self.destinationViewController view];
    flipViewController.disableMultisampling = self.disableMultisampling;
    flipViewController.disableLightEffect = self.disableLightEffect;
    flipViewController.depth = self.depth;

    [self.sourceViewController presentViewController:self.destinationViewController animated:NO completion:nil];
    [self.destinationViewController presentViewController:flipViewController animated:NO completion:nil];
}

@end

did anyone succeed?