Fixed #93. Make sure that when the menu is changed the old view is removed
This commit is contained in:
parent
cf05a15b2f
commit
f2d50da1f6
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue