Closed jhonny-me closed 7 years ago
already made a demo here: https://github.com/jhonny-me/SideMenu
What I learned:
Basically, ViewController has two functions, one is to manage all his views life cycle, and one is to act as the viewController container which means manage child view controllers, like UINavigationController.
And when view controller acts as the container, it adds childViewController and childViewContoller's view as a subview.
Consider this as part of my learning UIViewController and view management.