PTSelectableBarButtonItem


@interface PTSelectableBarButtonItem : UIBarButtonItem

The PTSelectableBarButtonItem class allows selection of a bar button item and can display a red badge indicator.

  • Whether the item is selected. When the item is selected, its view will be shown with a tinted background to indicate the selection.

    The default value of this property is NO.

    Declaration

    Objective-C

    @property (nonatomic, getter=isSelected) BOOL selected;

    Swift

    var isSelected: Bool { get set }
  • Whether a red badge indicator is shown.

    The default value of this property is NO.

    Declaration

    Objective-C

    @property (nonatomic, getter=isBadgeHidden) BOOL badgeHidden;

    Swift

    var isBadgeHidden: Bool { get set }