I found the AKSwiftSlideMenu code to create a slide menu. The example works great.
I figured out how to add more item in the side menu, but when I click on the new items it will take me to my new viewcontroller but I don't have the '3 LINED MENU ICON' on the top.
SEE LINK TO VC3 BELOW case 0: print("Home\n", terminator: "")
self.openViewControllerBasedOnIdentifier("Home")
break
case 1:
print("Play\n", terminator: "")
self.openViewControllerBasedOnIdentifier("PlayVC")
break
case 2:
print("x\n", terminator: "")
self.openViewControllerBasedOnIdentifier("VC3")
break
default:
print("default\n", terminator: "")
}
}
What are the steps to add a new VC3, I know how to add a new vc to the main storyboard, but can't seem to get the new vc to have the navigation bar and the '3 line menu' at the top of my new VC.
thanks
Try this code:
Note: Below code has to go inside your BaseViewController.Make sure you set segue identifier and destinatinViewController on all viewController.
Note : If you not using segue to connect VC's then you need a different approach.let me know.
Update:
Step1: Create a swift class for your newVC.
Step2: Drag newVC to your storyBoard and setup a custom class name.(newVc class name and VC custom class name should be match)
Step3: Connect AKSwiftSlideMenuVC to newVC and give name to your segueIdentifier.
Step 4: Goto BaseViewController update your case segueIdentifier and destVC...