PTAnnotationViewCell


@interface PTAnnotationViewCell : UITableViewCell

A table view cell class capable of displaying PDF annotation info.

  • Initializes an annotation view cell with a style and reuse identifier.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithStyle:(UITableViewCellStyle)style
                          reuseIdentifier:(nullable NSString *)reuseIdentifier;

    Swift

    init(style: UITableViewCell.CellStyle, reuseIdentifier: String?)

    Parameters

    style

    The cell style.

    reuseIdentifier

    The cell reuse identifier.

    Return Value

    An initialized PTAnnotationViewCell instance.

  • Undocumented

    Declaration

    Objective-C

    - (instancetype)initWithCoder:(NSCoder *)coder NS_UNAVAILABLE;
  • The delegate of the annotation view cell.

    Note

    The default value of this property is nil.

    Declaration

    Objective-C

    @property (nonatomic, weak, nullable) id<PTAnnotationViewCellDelegate> delegate;

    Swift

    weak var delegate: (any PTAnnotationViewCellDelegate)? { get set }
  • Whether the type name of the annotation is displayed.

    The default value of this property is YES.

    Declaration

    Objective-C

    @property (nonatomic) BOOL displayAnnotationType;

    Swift

    var displayAnnotationType: Bool { get set }
  • Whether the annotation author is displayed.

    The default value of this property is NO.

    Declaration

    Objective-C

    @property (nonatomic) BOOL displayAnnotationAuthor;

    Swift

    var displayAnnotationAuthor: Bool { get set }
  • The amount that the cell’s content is inset from its edges.

    Note

    The default value of this property is UIEdgeInsetsZero.

    Declaration

    Objective-C

    @property (nonatomic) UIEdgeInsets contentInsets;

    Swift

    var contentInsets: UIEdgeInsets { get set }
  • The image view that displays an icon for the annotation’s type.

    Declaration

    Objective-C

    @property (nonatomic, strong, readonly) UIImageView *_Nonnull annotationImageView;

    Swift

    var annotationImageView: UIImageView { get }
  • The label showing the title of the cell.

    Declaration

    Objective-C

    @property (nonatomic, strong, readonly) UILabel *_Nonnull titleLabel;

    Swift

    var titleLabel: UILabel { get }
  • The label displaying the (creation) date of the annotation.

    Declaration

    Objective-C

    @property (nonatomic, strong, readonly) UILabel *_Nonnull dateLabel;

    Swift

    var dateLabel: UILabel { get }
  • The label displaying the annotation’s text contents.

    Declaration

    Objective-C

    @property (nonatomic, strong, readonly) UILabel *_Nonnull messageLabel;

    Swift

    var messageLabel: UILabel { get }
  • The optional action button in the cell that can be used to display annotation reply comments.

    The action button is hidden by default and can be controlled with the -[PTAnnotationViewCellDelegate annotationViewCell:shouldShowRepliesForAnnotation:] delegate method.

    Declaration

    Objective-C

    @property (nonatomic, strong, readonly) UIButton *_Nonnull actionButton;

    Swift

    var actionButton: UIButton { get }
  • A view displayed at the leading edge of the cell that can be used to indicate some additional state of the annotation.

    This view can be used to display an unread indicator dot or small indicator-like icon, for example.

    Note

    The default value of this property is nil.

    Declaration

    Objective-C

    @property (nonatomic, strong, nullable) UIView *leadingIndicatorView;

    Swift

    var leadingIndicatorView: UIView? { get set }
  • The vertical alignment of the leadingIndicatorView.

    Note

    The default value of this property is PTAnnotationViewCellIndicatorAlignmentTop.

    Declaration

    Objective-C

    @property (nonatomic) PTAnnotationViewCellIndicatorAlignment leadingIndicatorAlignment;

    Swift

    var leadingIndicatorAlignment: PTAnnotationViewCell.IndicatorAlignment { get set }