PSPDFDocumentPickerCell


@interface PSPDFDocumentPickerCell : PSPDFTableViewCell

UITableViewCell subclass representing a document. Used in PSPDFDocumentPickerController.

  • Configure a new cell.

    Declaration

    Objective-C

    - (void)configureWithDocument:(nonnull PSPDFDocument *)document
                 useDocumentTitle:(BOOL)useDocumentTitle
                       detailText:(nullable NSAttributedString *)detailText
                        pageIndex:(NSUInteger)pageIndex
                     previewImage:(nonnull UIImage *)previewImage;

    Swift

    func configure(with document: PSPDFDocument, useDocumentTitle: Bool, detailText: NSAttributedString?, pageIndex: UInt, previewImage: UIImage)
  • Associated document with the cell. Used to get the document title.

    Declaration

    Objective-C

    @property (readwrite, nonatomic) PSPDFDocument *_Nullable document;

    Swift

    weak var document: PSPDFDocument? { get set }
  • Associated pageIndex of the document. Usually 0.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic) NSUInteger pageIndex;

    Swift

    var pageIndex: UInt { get set }
  • Page preview image.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic, nullable) UIImage *pagePreviewImage;

    Swift

    var pagePreviewImage: UIImage? { get set }
  • Set a new page preview image.

    Declaration

    Objective-C

    - (void)setPagePreviewImage:(nullable UIImage *)pagePreviewImage
                       animated:(BOOL)animated;

    Swift

    func setPagePreviewImage(_ pagePreviewImage: UIImage?, animated: Bool)
  • Image view used for displaying the page preview image.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic) UIImageView *_Nonnull pageImageView;

    Swift

    var pageImageView: UIImageView { get set }
  • Label used for displaying the document title.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic) UILabel *_Nonnull titleLabel;

    Swift

    var titleLabel: UILabel { get set }
  • Label used for displaying an optional detail text.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic) UILabel *_Nonnull detailLabel;

    Swift

    var detailLabel: UILabel { get set }
  • Font used for the title label. Defaults to UIFontTextStyleSubheadline.

    Declaration

    Objective-C

    + (nonnull UIFont *)titleLabelFont;

    Swift

    class func titleLabelFont() -> UIFont
  • Font used for the detail label. Default to UIFontTextStyleFootnote.

    Declaration

    Objective-C

    + (nonnull UIFont *)detailLabelFont;

    Swift

    class func detailLabelFont() -> UIFont