File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed
Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -102,15 +102,25 @@ - (id)initWithRootViewController:(UIViewController *)rootViewController
102102return self;
103103}
104104
105+ - (id )initWithNavigationBarClass : (Class )navigationBarClass toolbarClass : (Class )toolbarClass
106+ {
107+ if (self = [super initWithNavigationBarClass: navigationBarClass toolbarClass: toolbarClass])
108+ {
109+ [self setup ];
110+ }
111+
112+ return self;
113+ }
114+
105115- (void )setup
106116{
107117if (singletonInstance)
108118NSLog (@" Singleton instance already exists. You can only instantiate one instance of SlideNavigationController. This could cause major issues" );
109119
110120singletonInstance = self;
111121
112- self.menuRevealAnimationDuration = MENU_SLIDE_ANIMATION_DURATION;
113- self.menuRevealAnimationOption = MENU_SLIDE_ANIMATION_OPTION;
122+ self.menuRevealAnimationDuration = MENU_SLIDE_ANIMATION_DURATION;
123+ self.menuRevealAnimationOption = MENU_SLIDE_ANIMATION_OPTION;
114124self.landscapeSlideOffset = MENU_DEFAULT_SLIDE_OFFSET;
115125self.portraitSlideOffset = MENU_DEFAULT_SLIDE_OFFSET;
116126self.panGestureSideOffset = 0 ;
You can’t perform that action at this time.
0 commit comments