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 }
-
Undocumented
Declaration
Objective-C
- (instancetype)initWithImage:(nullable UIImage *)image landscapeImagePhone:(nullable UIImage *)landscapeImagePhone style:(UIBarButtonItemStyle)style target:(nullable id)target action:(nullable SEL)action NS_UNAVAILABLE;
-
Undocumented
Declaration
Objective-C
- (instancetype)initWithBarButtonSystemItem:(UIBarButtonSystemItem)systemItem target:(nullable id)target action:(nullable SEL)action NS_UNAVAILABLE;
-
Undocumented
Declaration
Objective-C
- (instancetype)init NS_UNAVAILABLE;