PSPDFTabbedBar

Objective-C


@interface PSPDFTabbedBar : UIView

Swift

class PDFTabbedBar : UIView

A bar that shows tabs for switching between documents, used by PSPDFTabbedViewController.

  • The height of the tabbed bar in points.

    The default is 33 points. If the height is less than 44 points, the hit area used for passing touch events to the tabbed bar extends below the visible bar to keep the hit target 44 points high.

    Declaration

    Objective-C

    @property (nonatomic) CGFloat barHeight;

    Swift

    var barHeight: CGFloat { get set }
  • The minimum tab width in points. The tab bar will allow horizontal scrolling rather than making tabs narrower than this width. The default is 100 points.

    Declaration

    Objective-C

    @property (nonatomic) CGFloat minTabWidth;

    Swift

    var minTabWidth: CGFloat { get set }
  • The font used for each tab’s title label. The default is the system font in a size that scales with the iOS Text Size setting; the default may be restored by setting this property to nil.

    Declaration

    Objective-C

    @property (nonatomic, null_resettable) UIFont *tabTitleFont;

    Swift

    var tabTitleFont: UIFont! { get set }
  • The image used for the button shown on the selected tab that closes that tab. The image is aligned with the left end of the tab. To hide the close button, set closeMode to PSPDFTabbedViewControllerCloseModeDisabled on the parent PSPDFTabbedViewController. The default is a cross that scales with barHeight; the default may be restored by setting this property to nil.

    Declaration

    Objective-C

    @property (nonatomic, null_resettable) UIImage *closeButtonImage;

    Swift

    var closeButtonImage: UIImage! { get set }
  • The view that provides the bar background appearance. The view in this property is positioned underneath all other tabbed bar content and is sized automatically to fill the bar. The default is a view that blurs the content behind the tabbed bar; the default may be restored by setting this property to nil.

    Declaration

    Objective-C

    @property (nonatomic, null_resettable) UIView *backgroundView;

    Swift

    var backgroundView: UIView! { get set }
  • A button shown in the tabbed bar that may be tapped to show a picker to open new documents. This button will be hidden if the owning PSPDFTabbedViewController does not have a documentPickerController.

    Declaration

    Objective-C

    @property (nonatomic, readonly) UIButton *_Nonnull documentPickerButton;

    Swift

    var documentPickerButton: UIButton { get }
  • A button shown in the tabbed bar that may be tapped to show an overview of all loaded documents.

    Declaration

    Objective-C

    @property (nonatomic, readonly) UIButton *_Nonnull overviewButton;

    Swift

    var overviewButton: UIButton { get }
  • The minimum number of tabs for which to show overviewButton. The default is PSPDFTabbedBarOverflowThresholdAutomatic.

    Declaration

    Objective-C

    @property (nonatomic) NSInteger overviewThreshold;

    Swift

    var overviewThreshold: Int { get set }
  • An array of views placed at the leading end of the tabbed bar. The views are ordered leading-to-trailing, with the first view in the array on the leading edge. The default is an array containing only documentPickerButton.

    Declaration

    Objective-C

    @property (nonatomic, copy) NSArray<UIView *> *_Nonnull leftViews;

    Swift

    var leftViews: [UIView] { get set }
  • An array of views placed at the trailing end of the tabbed bar. The views are ordered trailing-to-leading, with the first view in the array on the trailing edge. The default is an array containing only overviewButton.

    Declaration

    Objective-C

    @property (nonatomic, copy) NSArray<UIView *> *_Nonnull rightViews;

    Swift

    var rightViews: [UIView] { get set }