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, assign, unsafe_unretained, readwrite)
        BOOL showsAnnotationStyle;

    Swift

    var showsAnnotationStyle: Bool { get set }