Figure 14-12: Select the Navigation Controller in the Document Outline.
Changing the Split View Controller to a Detail View Controller Relationship
At this point, since it really doesn’t do anything, you can delete the RTDetail ViewController
object from the storyboard (but be sure not to delete the class files in the Project navigator). You’ll replace the relationship between the Split View controller and the RTDetailView
controller with one to the Weather controller. I chose Weather controller arbitrarily here — you could just as easily have replaced it with any of the other view controllers. This is the Detail View the user will see when the application is launched.
1. In the Document Outline, select the Navigation controller associated with the Detail View controller (see Figure 14-12) and press Delete.
2. Select the Detail View controller in the Document Outline (see Figure 14-13) and press Delete as well.
You’ll need to create a new relationship between the Split View controller and the Weather controller.
3. Select the Split View controller on the storyboard, Control-drag to the Weather controller and then select Relationship – Detail View Controller from the pop-up menu that appears (as I have in Figure 14-14).
The final result of what has been added to the storyboard so far should look like Figure 14-15. I’ve rearranged things a bit for the sake of clarity.
Figure 14-13: Select the Detail View controller in the Document Outline.
Figure 14-14: A new ...
Get iPad Application Development For Dummies, 3rd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.