PSPDFAnnotationGridViewController

Objective-C


@interface PSPDFAnnotationGridViewController
    : PSPDFBaseViewController <PSPDFStyleable>

Swift

class AnnotationGridViewController : PDFBaseViewController, Styleable

Shows a grid of annotations.

This is the superclass of PSPDFStampViewController and PSPDFSavedAnnotationsViewController and is not intended to be used directly.

  • Internally used collection view.

    Declaration

    Objective-C

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

    Swift

    var collectionView: UICollectionView? { get }
  • Delegate.

    Declaration

    Objective-C

    @property (nonatomic, weak) id<PSPDFAnnotationGridViewControllerDelegate> _Nullable delegate;

    Swift

    @IBOutlet weak var delegate: AnnotationGridViewControllerDelegate? { get set }
  • Data Source.

    Declaration

    Objective-C

    @property (nonatomic, weak) id<PSPDFAnnotationGridViewControllerDataSource> _Nullable dataSource;

    Swift

    @IBOutlet weak var dataSource: AnnotationGridViewControllerDataSource? { get set }
  • Reloads from the dataSource.

    Declaration

    Objective-C

    - (void)reloadData;

    Swift

    func reloadData()
  • To make custom buttons.

    Declaration

    Objective-C

    - (void)close:(nullable id)sender;

    Swift

    func close(_ sender: Any?)
  • Customize cell configuration.

    Declaration

    Objective-C

    - (void)configureCell:(nonnull PSPDFAnnotationSetCell *)annotationSetCell
             forIndexPath:(nonnull NSIndexPath *)indexPath;

    Swift

    func configureCell(_ annotationSetCell: PSPDFAnnotationSetCell, for indexPath: IndexPath)
  • Trigger popover size recalculation.

    Declaration

    Objective-C

    - (void)updatePopoverSize;

    Swift

    func updatePopoverSize()