Swift 4 version
Project Files
- Main.Storyboard
- AppDelegate.swift
- SlidingMenuViewController.swift
- CountriesViewController.swift
- ContinentViewController.swift - sample file
- MenuViewController - menu item
- HomeViewController -> Manages menu & other controllers interactions. This can be a login page to in your app
- Story Board
- Set Identifier for the view controller, so you can instantitateViewControllerWithIdentifier
- Embed in Navigation controller (optional step)
- Add a Menu Item (Bar Button Item)
- Connect IBOutlets, IBAction and set tableview delegate to your view controller
- Code
- Add a delegate in the new controller
- Add a delegate method in the menu view controller
- Add it in the HomeViewController