diff --git a/RESideMenu/RESideMenu.m b/RESideMenu/RESideMenu.m index b6b8efd9..b6ec0a79 100644 --- a/RESideMenu/RESideMenu.m +++ b/RESideMenu/RESideMenu.m @@ -757,6 +757,12 @@ - (void)setLeftMenuViewController:(UIViewController *)leftMenuViewController - (void)setRightMenuViewController:(UIViewController *)rightMenuViewController { + if ( ! rightMenuViewController) { + _rightMenuViewController = nil; + return; + } + + if (!_rightMenuViewController) { _rightMenuViewController = rightMenuViewController; return;