PTDiffViewController


@interface PTDiffViewController : UIViewController

The PTDiffViewController class provides functionality to produce a document representing the visual difference between two documents. Instances of this class must be embedded inside a UINavigationController.

  • Initializes a new PTDiffViewController instance with two documents to compare.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithDocument:(nullable PTPDFDoc *)firstDocument
                              secondDocument:(nullable PTPDFDoc *)secondDocument;

    Parameters

    firstDocument

    The first PTPDFDoc instance to compare.

    secondDocument

    The second PTPDFDoc instance to compare.

    Return Value

    an initialized PTDiffViewController.

  • Initializes a new PTDiffViewController instance with two documents to compare and their display color.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithDocument:(nullable PTPDFDoc *)firstDocument
                              secondDocument:(nullable PTPDFDoc *)secondDocument
                          firstDocumentColor:(nullable UIColor *)firstDocumentColor
                         secondDocumentColor:
                             (nullable UIColor *)secondDocumentColor;

    Parameters

    firstDocument

    The first PTPDFDoc instance to compare.

    secondDocument

    The second PTPDFDoc instance to compare.

    firstDocumentColor

    The display color for firstDocument.

    secondDocumentColor

    The display color for secondDocument.

    Return Value

    an initialized PTDiffViewController.

  • An object conforming to the PTdiffViewControllerDelegate protocol.

    Declaration

    Objective-C

    @property (nonatomic, weak, nullable) id<PTDiffViewControllerDelegate> delegate;
  • The first document to compare.

    Declaration

    Objective-C

    @property (nonatomic, strong, nullable) PTPDFDoc *firstDocument;
  • The second document to compare.

    Declaration

    Objective-C

    @property (nonatomic, strong, nullable) PTPDFDoc *secondDocument;
  • The display color to use for the first document.

    Declaration

    Objective-C

    @property (nonatomic, strong, nullable) UIColor *firstDocumentColor;
  • The display color to use for the second document.

    Declaration

    Objective-C

    @property (nonatomic, strong, nullable) UIColor *secondDocumentColor;
  • The blend mode used for comparing documents.

    Declaration

    Objective-C

    @property (nonatomic) PTBlendMode blendMode;
  • Undocumented

    Declaration

    Objective-C

    - (instancetype)initWithCoder:(NSCoder *)aDecoder NS_UNAVAILABLE;