PSPDFDocumentInfoController

Objective-C

@protocol PSPDFDocumentInfoController

Swift

protocol DocumentInfoController

Conforming to this protocol indicated, that the view controller can be used in the document info coordinator.

  • Initialize the controller with an optional document.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithDocument:(nullable PSPDFDocument *)document;

    Swift

    init(document: PSPDFDocument?)
  • Reference to the attached document. Should be set in the initializer. May reload the controller when changed.

    Declaration

    Objective-C

    @property (nonatomic, weak) PSPDFDocument *_Nullable document;

    Swift

    weak var document: PSPDFDocument? { get set }
  • Reference to the containing view controller.

    Declaration

    Objective-C

    @optional
    @property (nonatomic, weak, readwrite)
        PSPDFContainerViewController *_Nullable container;

    Swift

    weak optional var container: PSPDFContainerViewController? { get set }