My drawer start screen is missing navigation bar
I am making one iOS app where I am using MMDrawer. The problem is the toolbar which is not showing my drawer button. I can't even find the navigation bar on this screen through which I want to show the side drawer menu.
I am initializing the box by following the code in my login screen button
AppDelegate *aPPDel=(AppDelegate*)[[UIApplication sharedApplication] delegate];
UIViewController * leftSideDrawerViewController = [self.storyboard instantiateViewControllerWithIdentifier:@"sidemenuvc"];
UINavigationController * leftSideNavController = [[UINavigationController alloc] initWithRootViewController:leftSideDrawerViewController];
UIViewController * centerSideDrawerViewController = [self.storyboard instantiateViewControllerWithIdentifier:@"homevc"];
UINavigationController * centerSideNavController = [[UINavigationController alloc] initWithRootViewController:centerSideDrawerViewController];
MMDrawerController *drawerController = [[MMDrawerController alloc] initWithCenterViewController:centerSideNavController leftDrawerViewController:leftSideNavController];
[leftSideDrawerViewController.navigationController setToolbarHidden:NO];
[centerSideDrawerViewController.navigationController setToolbarHidden:NO];
[drawerController setShowsShadow:NO];
[drawerController setMaximumRightDrawerWidth:200.0];
[drawerController setOpenDrawerGestureModeMask:MMOpenDrawerGestureModeAll];
[drawerController setCloseDrawerGestureModeMask:MMCloseDrawerGestureModeAll];
UINavigationController *navigationController = [[UINavigationController alloc] initWithRootViewController:drawerController];
[aPPDel.window setRootViewController:navigationController];
in my home screen toolbar, I wrote this code
[self.mm_drawerController toggleDrawerSide:MMDrawerSideLeft animated:YES completion:nil];
I tried all possible ways to show the navbar (hidden is not) but could not find a solution
+3
source to share
No one has answered this question yet
Check out similar questions: