PSPDFContainerViewControllerDelegate

Objective-C

@protocol PSPDFContainerViewControllerDelegate <NSObject>

Swift

protocol ContainerViewControllerDelegate : NSObjectProtocol

Delegate for events and customization of PSPDFContainerViewController.

  • Called every time visibleViewControllerIndex changes.

    Declaration

    Objective-C

    - (void)containerViewController:
                (nonnull PSPDFContainerViewController *)controller
             didUpdateSelectedIndex:(NSUInteger)selectedIndex;

    Swift

    optional func containerViewController(_ controller: ContainerViewController, didUpdateSelectedIndex selectedIndex: UInt)
  • Returns a Boolean value that indicates whether prefer to use a View Controller title or an icon in a segmented control.

    Declaration

    Objective-C

    - (BOOL)containerViewController:
                (nonnull PSPDFContainerViewController *)controller
        shouldUseTitleForViewController:(nonnull UIViewController *)viewController;

    Swift

    optional func containerViewController(_ controller: ContainerViewController, shouldUseTitleFor viewController: UIViewController) -> Bool