Graphics Programs Reference
In-Depth Information
[[self window] setRootViewController:masterNav];
}
self.window.backgroundColor = [UIColor whiteColor];
[self.window makeKeyAndVisible];
return YES;
}
By placing the UISplitViewController code within an if statement in this meth-
od, we are laying the groundwork for making Nerdfeed a universal application. Also, now
you can see why we created the instance of WebViewController here instead of fol-
lowing the typical pattern of creating the detail view controller inside the implementation
for the root view controller. A split view controller must have both the master and the de-
tail view controller when it is created. The diagram for Nerdfeed 's split view controller is
shown in Figure 26.2 .
Figure 26.2 Split view controller diagram
 
Search WWH ::




Custom Search