PSPDFAnnotationSetsCell

Objective-C


@interface PSPDFAnnotationSetsCell
    : PSPDFTableViewCell <UICollectionViewDelegate, UICollectionViewDataSource>

Swift

class AnnotationSetsCell : PDFTableViewCell, UICollectionViewDelegate, UICollectionViewDataSource

Shows multiple annotation sets within a table cell.

  • Allows PSPDFAnnotation or PSPDFAnnotationSet objects.

    Declaration

    Objective-C

    @property (nonatomic, copy, nullable) NSArray *annotations;

    Swift

    var annotations: [Any]? { get set }
  • The internal collection view.

    Declaration

    Objective-C

    @property (nonatomic, readonly) UICollectionView *_Nonnull collectionView;

    Swift

    var collectionView: UICollectionView { get }
  • The item border. Convenience setter for the internal flow layout.

    Declaration

    Objective-C

    @property (nonatomic) CGFloat border;

    Swift

    var border: CGFloat { get set }
  • Edge insets of the individual annotation sets.

    Declaration

    Objective-C

    @property (nonatomic) UIEdgeInsets edgeInsets;

    Swift

    var edgeInsets: UIEdgeInsets { get set }
  • Called when the collection view selection changes.

    Declaration

    Objective-C

    @property (nonatomic, copy, nullable) void (^) (PSPDFAnnotationSetsCell *_Nonnull) collectionViewUpdateBlock;

    Swift

    var collectionViewUpdateBlock: ((AnnotationSetsCell) -> Void)? { get set }