0

I have added MMDrawerController to my project,before using MMDrawerController the navigation bar was appearing as desired in black color and the bar button item was also visible but when I added MMDrawerController to the project ,the navigation bar shows grey color rather than showing black and the bar button item also doesn't come .Kindly help me to get the navigation bar in black color and bar button item also visible.Thanks in advance!

navigation bar settings

output on simulator

//MARK: function for adding MMDrawer controller func buildNavigationDrawerInterface () {

    let mainStoryBoard: UIStoryboard = UIStoryboard(name: "Main", bundle: nil)
    let centerVC = mainStoryBoard.instantiateViewController(withIdentifier: "tabbar") as!UITabBarController

    centerVC.tabBar.barTintColor = UIColor.black
    let leftVCs = mainStoryBoard.instantiateViewController(withIdentifier: "LeftViewController") as! LeftViewController


    let leftSideNav =  UINavigationController(rootViewController: leftVCs)

    let centerSideNav = UINavigationController(rootViewController: centerVC)

    drawerContainer = MMDrawerController(center: centerSideNav, leftDrawerViewController: leftSideNav)

    drawerContainer!.openDrawerGestureModeMask = MMOpenDrawerGestureMode.panningCenterView
    drawerContainer!.closeDrawerGestureModeMask = MMCloseDrawerGestureMode.panningCenterView
    //centerContainer?.setDrawerVisualStateBlock(MMDrawerVisualState.swingingDoorVisualStateBlock())

    window!.rootViewController = drawerContainer
    window!.makeKeyAndVisible()
            }
Prez
  • 227
  • 3
  • 12

0 Answers0