Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions RZTransitions/Interactors/RZBaseSwipeInteractionController.m
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,9 @@ - (void)handlePanGesture:(UIPanGestureRecognizer *)panGestureRecognizer
[self.fromViewController.navigationController popViewControllerAnimated:YES];
}
else if (self.action & RZTransitionAction_Dismiss) {
[[NSNotificationCenter defaultCenter]
postNotificationName:@"disableRotation"
object:nil];
[self.fromViewController dismissViewControllerAnimated:YES completion:nil];
}
}
Expand Down
4 changes: 4 additions & 0 deletions RZTransitions/Managers/RZTransitionsManager.m
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,10 @@ - (void)overrideAnimationDirection:(BOOL)override withTransition:(RZUniqueTransi

// Find the dismissed view controller's view controller it is returning to
UIViewController *presentingViewController = dismissed.presentingViewController;
if ( [presentingViewController isKindOfClass:[UITabBarController class]] ) {
UITabBarController *tabBarController = (UITabBarController *) presentingViewController;
presentingViewController = tabBarController.selectedViewController;
}
if ( [presentingViewController isKindOfClass:[UINavigationController class]] ) {
UIViewController *childVC = (UIViewController *)[[presentingViewController childViewControllers] lastObject];
if ( childVC != nil ) {
Expand Down