[self addChildViewController:self.redVC];
[self.view addSubview:self.redVC.view];
[self.redVC didMoveToParentViewController:self];
"self" is a tabBarController, "redVC" is a test VC. I want full life cycle(such as viewDidAppear and rotation chain) to pass to childViewController(redVC), so I use childVC. However, this method will show the tabBar.
When just put self.redVC.view above the self.view, not by addChildViewController. The tabBar can be covered. Overlay a view over whole screen, when using UITabBarController?.
Meanwhile, I may add a transparent view to tabBarViewController's view, and in this situation, the tabBar should be seen. Thus, I don't want to change the tabBar's frame or to hide it.
Is there a method to achieve them all?
- Full life cycle pass and rotation chain from the parent viewController
- Full screen view to add(if this view is transparent, the toolBar should be seen)
- Don't change or hide tabBar