Displaying the Master View Controller in Portrait Mode
While in portrait mode, the master view controller is missing in action. It would be nice if you could see the master view controller to select a new post from the list without having to rotate the device. UISplitViewController lets you do just that by supplying its delegate with a UIBarButtonItem. Tapping this button shows the master view controller in a UIPopoverController.
In your code, whenever a detail view controller was given to the split view controller, that detail view controller was set as the split view controller’s delegate. When rotating to portrait mode, the detail view controller will get a pointer to the UIBarButtonItem.
In WebViewController.m, implement the following delegate ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access