Since I have a parent view controller and a child,
the parent view controller is something like a container controller that apple doc said
then do
[parentVC addChildViewController:childVC]
but now childVC is not displayed on the screen; Should I add the code below?
[parentVC.view addSubview:childVC.view];
- Page In my opinion, a container is a container, when I added childVC, it must add itself, or some method can do it.
UIWindow has the property "rootViewController", when you install it, a new view will be added automatically, I think this is what I want.
I need some advice. Thanks.
source share