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 whether to maintain the specified annotation’s current aspect ratio.
Declaration
Objective-C
- (void)annotEditTool:(nonnull PTAnnotEditTool *)annotEditTool maintainAspectRatio:(inout nonnull BOOL *)maintainAspectRatio forAnnotation:(nonnull PTAnnot *)annot onPageNumber:(unsigned long)pageNumber;Swift
optional func annotEditTool(_ annotEditTool: PTAnnotEditTool, maintainAspectRatio: UnsafeMutablePointer<ObjCBool>, forAnnotation annot: PTAnnot, onPageNumber pageNumber: UInt)Parameters
annotEditToolThe annot edit tool.
maintainAspectRatioA pointer to a boolean indicating the default aspect-ratio behavior for the given annotation. The default behavior can be overridden by changing the boolean value.
annotThe annotation.
pageNumberThe page number of the annotation.
-
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) -> BoolParameters
annotEditToolThe annot edit tool.
annotThe annotation that will be rendered.
pageNumberThe page number of the annotation.
PTAnnotEditToolDelegate Protocol Reference