Instance Method

initWithContentViewController:

Returns an initialized popover controller object.

Declaration

- (instancetype)initWithContentViewController:(UIViewController *)viewController;

Parameters

viewController

The view controller for managing the popover’s content. This parameter must not be nil.

Return Value

An initialized popover controller object.

Discussion

When initializing a popover controller, you must specify the view controller object whose content is to be displayed in the popover. You can change this view controller later by modifying the contentViewController property.

See Also