From 7dfe1fa321540dc520894857a43fda0608f485ad Mon Sep 17 00:00:00 2001 From: Filipe Marques Date: Mon, 8 Jul 2013 15:23:30 -0300 Subject: [PATCH 1/3] Updated to initialize with storyboard --- PKRevealController/Controller/PKRevealController.m | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/PKRevealController/Controller/PKRevealController.m b/PKRevealController/Controller/PKRevealController.m index 39782f3..3149a2d 100644 --- a/PKRevealController/Controller/PKRevealController.m +++ b/PKRevealController/Controller/PKRevealController.m @@ -155,6 +155,10 @@ - (id)initWithCoder:(NSCoder *)aDecoder if (self != nil) { [self commonInitializer]; + if (self.controllerOptions == nil) + { + self.controllerOptions = [NSMutableDictionary dictionaryWithCapacity:10]; + } } return self; @@ -1498,4 +1502,4 @@ NS_INLINE void safelyExecuteCompletionBlockOnMainThread(PKDefaultCompletionHandl } } -@end \ No newline at end of file +@end From f0772915a4c3dc60429a910245c82dbf4124dec8 Mon Sep 17 00:00:00 2001 From: Filipe Marques Date: Thu, 8 Aug 2013 11:39:06 -0300 Subject: [PATCH 2/3] updating fix --- PKRevealController/Controller/PKRevealController.m | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/PKRevealController/Controller/PKRevealController.m b/PKRevealController/Controller/PKRevealController.m index 3149a2d..5e81631 100644 --- a/PKRevealController/Controller/PKRevealController.m +++ b/PKRevealController/Controller/PKRevealController.m @@ -155,10 +155,6 @@ - (id)initWithCoder:(NSCoder *)aDecoder if (self != nil) { [self commonInitializer]; - if (self.controllerOptions == nil) - { - self.controllerOptions = [NSMutableDictionary dictionaryWithCapacity:10]; - } } return self; @@ -182,6 +178,11 @@ - (void)commonInitializer _frontViewController.revealController = self; _leftViewController.revealController = self; _rightViewController.revealController = self; + + if (self.controllerOptions == nil) + { + self.controllerOptions = [NSMutableDictionary dictionaryWithCapacity:10]; + } } #pragma mark - API From 1dcd30b47685c3845a94d8c7c1a0558d89c9a8ab Mon Sep 17 00:00:00 2001 From: Filipe Marques Date: Thu, 8 Aug 2013 11:43:02 -0300 Subject: [PATCH 3/3] i really couldn't live with this, sorry --- PKRevealController/Controller/PKRevealController.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PKRevealController/Controller/PKRevealController.m b/PKRevealController/Controller/PKRevealController.m index 5e81631..f6d2e6b 100644 --- a/PKRevealController/Controller/PKRevealController.m +++ b/PKRevealController/Controller/PKRevealController.m @@ -179,7 +179,7 @@ - (void)commonInitializer _leftViewController.revealController = self; _rightViewController.revealController = self; - if (self.controllerOptions == nil) + if (!self.controllerOptions) { self.controllerOptions = [NSMutableDictionary dictionaryWithCapacity:10]; }