Instance Method

splitViewController:willShowViewController:invalidatingBarButtonItem:

Tells the delegate that the specified view controller is about to be shown again.

Declaration

- (void)splitViewController:(UISplitViewController *)svc willShowViewController:(UIViewController *)aViewController invalidatingBarButtonItem:(UIBarButtonItem *)barButtonItem;

Parameters

svc

The split view controller that owns the specified view controller.

aViewController

The view controller being hidden.

button

The button used to display the view controller while it was hidden.

Discussion

When the view controller rotates from a portrait to landscape orientation, it shows its hidden view controller once more. If you added the specified button to your toolbar to facilitate the display of the hidden view controller in a popover, you must implement this method and use it to remove that button.

See Also

Deprecated Methods

- splitViewController:shouldHideViewController:inOrientation:

Asks the delegate whether the first view controller should be hidden for the specified orientation.

Deprecated
- splitViewController:willHideViewController:withBarButtonItem:forPopoverController:

Tells the delegate that the specified view controller is about to be hidden.

Deprecated
- splitViewController:popoverController:willPresentViewController:

Tells the delegate that the hidden view controller is about to be displayed in a popover.

Deprecated