Instance Method

showViewController:sender:

Presents the specified view controller in the navigation interface.

Declaration

- (void)showViewController:(UIViewController *)vc sender:(id)sender;

Parameters

vc

The view controller to display.

sender

The object that made the request to show the view controller.

Discussion

This method pushes vc onto the navigation stack in a similar way as the pushViewController:animated: method. You can call this method directly if you want but typically this method is called from elsewhere in the view controller hierarchy when a new view controller needs to be shown.

The Show segue uses this method to display a new view controller.