PSPDFAnnotationView


@interface PSPDFAnnotationView : UIView <PSPDFAnnotationViewProtocol>

Generic annotation view that listens on annotation changes.

  • The currently set annotation.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic, nullable) PSPDFAnnotation *annotation;

    Swift

    var annotation: PSPDFAnnotation? { get set }
  • Associated weak reference to the PSPDFPageView the annotation is displayed on.

    Declaration

    Objective-C

    @property (readwrite, nonatomic) PSPDFPageView *_Nullable pageView;

    Swift

    weak var pageView: PSPDFPageView? { get set }
  • Allows adapting to the outer zoomScale. Re-set after zooming.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic) CGFloat zoomScale;

    Swift

    var zoomScale: CGFloat { get set }
  • Called when any annotation changes.

    Declaration

    Objective-C

    - (void)annotationChangedNotification:(nonnull NSNotification *)notification;

    Swift

    func annotationChangedNotification(_ notification: Notification)
  • Animated change notifications. Defaults to YES.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic) BOOL shouldAnimatedAnnotationChanges;

    Swift

    var shouldAnimatedAnnotationChanges: Bool { get set }
  • Triggers a frame recalculation. Usually only called when the annotation is set.

    Declaration

    Objective-C

    - (void)updateFrame;

    Swift

    func updateFrame()