jhonny-me / plans

1 stars 0 forks source link

[component] - MenuViewController #15

Closed jhonny-me closed 7 years ago

jhonny-me commented 7 years ago

Consider this as part of my learning UIViewController and view management.

jhonny-me commented 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.