I have setup a custom transition which is setup similar to this tutorial here.
What I am trying to do now is update a BOOL on the (below) UIViewController
. This is the controller that presents the controller on top.
How do I get access/a pointer to the below controller? I have tried self.presentingViewController but this is pointing to a UINavigationController
.
Custom Transition Info
The bottom controller is the UIViewControllerTransitioningDelegate
. The controllers are linked by a segue. The following is in the prepareForSegue
:
self.animationController = [[MESGuessGameTurnZoomAnimation alloc] init];
UIViewController *destVC = segue.destinationViewController;
destVC.transitioningDelegate = self;
When the destination view controller is presented the user can click Back which simply runs the following (at present) to return to the original view controller:
[self dismissViewControllerAnimated:YES completion:nil];