PSPDFOutlineCell

Objective-C


@interface PSPDFOutlineCell : PSPDFTableViewCell <PSPDFOverridable>

Swift

class OutlineCell : PDFTableViewCell, Overridable

Single cell for the outline controller.

  • Button that controls expanding and collapsing of cells.

    Declaration

    Objective-C

    @property (nonatomic) UIButton *_Nonnull disclosureButton;

    Swift

    var disclosureButton: UIButton { get set }
  • The label displayed containing the outline name.

    Declaration

    Objective-C

    @property (nonatomic) UILabel *_Nonnull nameLabel;

    Swift

    var nameLabel: UILabel { get set }
  • The page label displayed on the right side. Only valid if showPageLabel is set.

    Declaration

    Objective-C

    @property (nonatomic) UILabel *_Nonnull pageLabel;

    Swift

    var pageLabel: UILabel { get set }
  • 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?) -> UIFont
  • 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?) -> UIFont
  • 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 OutlineViewController.

    Declaration

    Objective-C

    @property (nonatomic) NSUInteger maximumNumberOfLines;

    Swift

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

    Declaration

    Objective-C

    @property (nonatomic) CGFloat outlineIndentLeftOffset;

    Swift

    var outlineIndentLeftOffset: CGFloat { get set }
  • Should be changed in OutlineViewController.

    Declaration

    Objective-C

    @property (nonatomic) CGFloat outlineIndentMultiplier;

    Swift

    var outlineIndentMultiplier: CGFloat { get set }