diff --git a/MMDrawerController/MMDrawerController.m b/MMDrawerController/MMDrawerController.m index ba3981ba..89f63854 100644 --- a/MMDrawerController/MMDrawerController.m +++ b/MMDrawerController/MMDrawerController.m @@ -455,8 +455,18 @@ -(void)setCenterViewController:(UIViewController *)newCenterViewController withC } BOOL forwardAppearanceMethodsToCenterViewController = ([self.centerViewController isEqual:newCenterViewController] == NO); + + UIViewController * oldCenterViewController = self.centerViewController; + if (animated && forwardAppearanceMethodsToCenterViewController) { + [oldCenterViewController beginAppearanceTransition:NO animated:NO]; + } + [self setCenterViewController:newCenterViewController animated:animated]; + if (animated && forwardAppearanceMethodsToCenterViewController) { + [oldCenterViewController endAppearanceTransition]; + } + if(animated){ [self updateDrawerVisualStateForDrawerSide:self.openSide percentVisible:1.0]; if (forwardAppearanceMethodsToCenterViewController) {