PSPDFOutlineCell


@interface PSPDFOutlineCell : PSPDFTableViewCell

Single cell for the outline controller.

  • Button that controls expanding and collapsing of cells.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic) UIButton *_Nonnull disclosureButton;

    Swift

    var disclosureButton: UnsafeMutablePointer
  • The label displayed containing the outline name.

    Declaration

    Objective-C

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

    Swift

    var nameLabel: UnsafeMutablePointer
  • The page label displayed on the right side. Only valid if showPageLabel is set.

    Declaration

    Objective-C

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

    Swift

    var pageLabel: UnsafeMutablePointer
  • Subclass to change the font of nameLabel. Default is UIFontTextStyleSubheadline for level 0 and UIFontTextStyleBody for level > 0. This also respects the fontTraits of outlineElement.

    Declaration

    Objective-C

    + (nonnull UIFont *)fontForOutlineElement:
        (nullable PSPDFOutlineElement *)outlineElement;

    Swift

    class func font(for outlineElement: PSPDFOutlineElement?) -> NSFont
  • Subclass to change the font of pageLabel. Default is UIFontTextStyleSubheadline.

    Declaration

    Objective-C

    + (nonnull UIFont *)pageLabelFontForOutlineElement:
        (nullable PSPDFOutlineElement *)outlineElement;

    Swift

    class func pageLabelFont(for outlineElement: PSPDFOutlineElement?) -> NSFont
  • Set transform according to expansion state.

    Declaration

    Objective-C

    - (void)updateDisclosureButton;

    Swift

    func updateDisclosureButton()
  • Button action. Animates and calls the delegate.

    Declaration

    Objective-C

    - (void)expandOrCollapse;

    Swift

    func expandOrCollapse()
  • Should be changed in PSPDFOutlineViewController.

    Declaration

    Objective-C

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

    Swift

    var maximumNumberOfLines: UInt { get set }
  • Should be changed in PSPDFOutlineViewController.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic) CGFloat outlineIntentLeftOffset;

    Swift

    var outlineIntentLeftOffset: CGFloat { get set }
  • Should be changed in PSPDFOutlineViewController.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic) CGFloat outlineIndentMultiplier;

    Swift

    var outlineIndentMultiplier: CGFloat { get set }