PTAnnotEditToolDelegate

@protocol PTAnnotEditToolDelegate <NSObject>

The PTAnnotEditToolDelegate protocol allows the adopting class to respond to messages sent by the PTAnnotEditTool class.

  • Notifies the delegate that editing of a free text annotation has begun.

    Declaration

    Objective-C

    - (void)annotEditTool:(nonnull PTAnnotEditTool *)annotEditTool
        didBeginEditingFreeText:(nonnull PTFreeText *)annot
                   withTextView:(nonnull UITextView *)textView;

    Swift

    optional func annotEditTool(_ annotEditTool: PTAnnotEditTool, didBeginEditing annot: PTFreeText, with textView: UITextView)
  • Allows the delegate to control if an annotation’s appearance should be rendered as a vector or a bitmap when selected. If the delegate method is not implemented, all annotations that can be rendered as vectors will be.

    Note

    Only certain annotation types can be rendered with vector appearances.

    Declaration

    Objective-C

    - (BOOL)annotEditTool:(nonnull PTAnnotEditTool *)annotEditTool
        shouldRenderAnnotationAsVector:(nonnull PTAnnot *)annot
                          onPageNumber:(unsigned long)pageNumber;

    Swift

    optional func annotEditTool(_ annotEditTool: PTAnnotEditTool, shouldRenderAnnotationAsVector annot: PTAnnot, onPageNumber pageNumber: UInt) -> Bool

    Parameters

    annotEditTool

    The annot edit tool.

    annot

    The annotation that will be rendered.

    pageNumber

    The page number of the annotation.