Fixed #93. Make sure that when the menu is changed the old view is removed

This commit is contained in:
Aryan 2014-11-28 12:24:45 -08:00
parent cf05a15b2f
commit f2d50da1f6
1 changed files with 14 additions and 0 deletions

View File

@ -851,4 +851,18 @@ static SlideNavigationController *singletonInstance;
_menuRevealAnimator = menuRevealAnimator;
}
- (void)setLeftMenu:(UIViewController *)leftMenu
{
[_leftMenu.view removeFromSuperview];
_leftMenu = leftMenu;
}
- (void)setRightMenu:(UIViewController *)rightMenu
{
[_rightMenu.view removeFromSuperview];
_rightMenu = rightMenu;
}
@end