Silver Challenge: Swapping the Master Button

When in portrait mode, the UIBarButtonItem that contains a popover with the master view controller will show up on the detail view controller’s navigation bar. If you switch from the ChannelViewController to the WebViewController, you won’t see the bar button item anymore. Fix this so that the bar button item stays visible when switching between the two different detail view controllers in portrait mode. (The bar button item should never appear in landscape mode.)

Get iOS Programming: The Big Nerd Ranch Guide 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.