PSPDFDocumentPickerCell

Objective-C


@interface PSPDFDocumentPickerCell : PSPDFTableViewCell

Swift

class PDFDocumentPickerCell : PDFTableViewCell

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:(PSPDFPageIndex)pageIndex
                     previewImage:(nonnull UIImage *)previewImage;

    Swift

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

    Declaration

    Objective-C

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

    Swift

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

    Declaration

    Objective-C

    @property (nonatomic) PSPDFPageIndex pageIndex;

    Swift

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

    Declaration

    Objective-C

    @property (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 (nonatomic) UIImageView *_Nonnull pageImageView;

    Swift

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

    Declaration

    Objective-C

    @property (nonatomic) UILabel *_Nonnull titleLabel;

    Swift

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

    Declaration

    Objective-C

    @property (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