PTAnnotationViewController

@interface PTAnnotationViewController : UITableViewController <PTOverridable>

The PTAnnotationViewController displays a list of all annotations in a document being viewed by a PTPDFViewCtrl The list will contain any comments that have been added to the annotations, and selecting an annotation will scroll the PTPDFViewCtrl to the position of the annotation. See the sample project Complete Reader for example usage.

  • The PTAnnotationViewController will display a list of the document’s annotations that can be used to navigate the document in a PTPDFViewCtrl. When an annotation is selected, the controller will navigate the PTPDFViewCtrl to its page. See the sample project Complete Reader for example usage.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithToolManager:
        (nonnull PTToolManager *)toolManager;

    Swift

    convenience init(toolManager: PTToolManager)
  • The PTAnnotationViewController will display a list of the document’s annotations that can be used to navigate the document in a PTPDFViewCtrl. When an annotation is selected, the controller will navigate the PTPDFViewCtrl to its page. See the sample project Complete Reader for example usage.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithPDFViewCtrl:
        (nonnull PTPDFViewCtrl *)pdfViewCtrl;

    Swift

    init(pdfViewCtrl: PTPDFViewCtrl)
  • Whether annotations are considered readonly and cannot be modified or deleted. The default value is NO, meaning that annotations can be deleted.

    Note

    The PTToolManager.readonly property is also consulted when determing if annotations can be modified or deleted. When PTToolManager.readonly is set to YES that property takes precedence over this property’s value.

    Declaration

    Objective-C

    @property (getter=isReadonly, assign, readwrite, nonatomic) BOOL readonly;

    Swift

    var isReadonly: Bool { get set }
  • An object that conforms to the PTAnnotationViewControllerDelegate protocol.

    Declaration

    Objective-C

    @property (readwrite, nonatomic, nullable) id<PTAnnotationViewControllerDelegate>
        delegate;

    Swift

    weak var delegate: PTAnnotationViewControllerDelegate? { get set }
  • Returns the annotation object associated with the index path.

    Declaration

    Objective-C

    - (nullable PTAnnot *)annotationForIndexPath:(nonnull NSIndexPath *)indexPath;

    Swift

    func annotation(for indexPath: IndexPath) -> PTAnnot?

    Parameters

    indexPath

    The index path.

    Return Value

    The annotation associated with the given index path.