Skip to content

Commit

Permalink
Merge pull request mutualmobile#324 from long/master
Browse files Browse the repository at this point in the history
Call removeFromParentViewController after removeFromSuperview in setCent...
  • Loading branch information
kcharwood committed Mar 16, 2015
2 parents 5b8ff82 + 4f5c2c2 commit 1f10c35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MMDrawerController/MMDrawerController.m
Original file line number Diff line number Diff line change
Expand Up @@ -421,11 +421,11 @@ -(void)setCenterViewController:(UIViewController *)centerViewController animated
if(animated == NO){
[oldCenterViewController beginAppearanceTransition:NO animated:NO];
}
[oldCenterViewController removeFromParentViewController];
[oldCenterViewController.view removeFromSuperview];
if(animated == NO){
[oldCenterViewController endAppearanceTransition];
}
[oldCenterViewController removeFromParentViewController];
}

_centerViewController = centerViewController;
Expand Down

0 comments on commit 1f10c35

Please sign in to comment.