Graphics Programs Reference
In-Depth Information
Figure 13.8 A view controller hierarchy
First, notice that the properties for parent-child relationships can never cross over family
boundaries. Thus, sending
tabBarController
to a view controller in Family 2 will
not return the
UITabBarController
in Family 1. Likewise, sending
naviga-
tionController
to the view controller in Family 2 returns its
UINavigationCon-
troller
parent in Family 2 and not the
UINavigationController
in Family 1.
Perhaps the oddest view controller relationships are the ones between families. When a
view controller is presented modally, the actual presenter is the oldest member of the
presentingViewController
for the view controllers in Family 2. It doesn't matter
which view controller in Family 1 was sent
presentViewControl-