PTToolBarButtonItem
@interface PTToolBarButtonItem : PTSelectableBarButtonItem <NSCopying>
Undocumented
-
Undocumented
Declaration
Objective-C
- (instancetype)initWithToolClass:(Class)toolClass target:(nullable id)target action:(nullable SEL)action;
Swift
init(toolClass: AnyClass, target: Any?, action: Selector?)
-
Undocumented
Declaration
Objective-C
@property (nonatomic, strong, nullable) Class toolClass
Swift
var toolClass: AnyClass? { get set }
-
Undocumented
Declaration
Objective-C
@property (nonatomic, copy, nullable) NSString *identifier
Swift
var identifier: String? { get set }
-
Whether this button item shows the current, default annotation style for the
toolClass
. For tool classes that do not create annotations or allow editing the style of annotations, this property has no effect.The default value of this property is
YES
.Declaration
Objective-C
@property (nonatomic) BOOL showsAnnotationStyle;
Swift
var showsAnnotationStyle: Bool { get set }
-
Set the small icon in the trailing bottom corner of the `PTToolBarButtonItem.
Declaration
Objective-C
- (void)setSubImage:(nonnull UIImage *)image withTintColor:(nullable UIColor *)tintColor;
Swift
func setSubImage(_ image: UIImage, withTintColor tintColor: UIColor?)
Parameters
tintColor
the tint color of the image.
-
Set the style of the image of the `PTToolBarButtonItem.
Declaration
Objective-C
- (void)setImageStyle:(nonnull PTAnnotStyle *)style;
Swift
func setImageStyle(_ style: PTAnnotStyle)
Parameters
style
the
PTAnnotStyle
to be set.