草庐IT

Containment

全部标签

ios - View Controller Containment 在 iOS 5 中如何工作?

在WWDC2011Session102中,Apple引入了ViewControllerContainment,即创建自定义ViewController容器的能力,类似于UITabBarController、UINavigationController等。我看了好几遍这些例子。有许多与此模式相关的方法,但要准确地找出它们有点困难。我将在这里发布我认为正在发生的事情,看看社区是否会证实或否定我的怀疑。场景1:从没有父ViewController移动到新的父ViewController[vcwillMoveToParentViewController:self];[selfaddChildV
12