From 3ccbd6a4330b52f9ee91c329bd81244e8cf31979 Mon Sep 17 00:00:00 2001 From: Aleksey Date: Mon, 31 Aug 2015 18:15:36 +0500 Subject: [PATCH 1/3] Update RESideMenu.m fix crashing for set menu VC as nil --- RESideMenu/RESideMenu.m | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/RESideMenu/RESideMenu.m b/RESideMenu/RESideMenu.m index b6b8efd9..8d239bc7 100644 --- a/RESideMenu/RESideMenu.m +++ b/RESideMenu/RESideMenu.m @@ -757,6 +757,11 @@ - (void)setLeftMenuViewController:(UIViewController *)leftMenuViewController - (void)setRightMenuViewController:(UIViewController *)rightMenuViewController { + if ( ! rightMenuViewController) { + _rightMenuViewController = nil; + return; + } + if (!_rightMenuViewController) { _rightMenuViewController = rightMenuViewController; return; From 138af4a05fde695d7193535ed18f6bbc903aa126 Mon Sep 17 00:00:00 2001 From: Roman Efimov Date: Wed, 24 Sep 2014 12:22:40 -0700 Subject: [PATCH 2/3] Remove test targets --- RESideMenu/RESideMenu.m | 1 + 1 file changed, 1 insertion(+) diff --git a/RESideMenu/RESideMenu.m b/RESideMenu/RESideMenu.m index 8d239bc7..b6ec0a79 100644 --- a/RESideMenu/RESideMenu.m +++ b/RESideMenu/RESideMenu.m @@ -762,6 +762,7 @@ - (void)setRightMenuViewController:(UIViewController *)rightMenuViewController return; } + if (!_rightMenuViewController) { _rightMenuViewController = rightMenuViewController; return; From 3d83cd39cbe80b181fdda0da2f2f637d54b9ffe4 Mon Sep 17 00:00:00 2001 From: Allen Zeng Date: Sat, 7 Feb 2015 23:52:43 +1100 Subject: [PATCH 3/3] add UIKit import to fix build error