PTEditToolbar

@interface PTEditToolbar : UIToolbar <PTOverridable>

The PTEditToolbar is used while creating certain annotation types and provides buttons for saving or discarding changes, as well as an optional undo/redo interface.

  • The edit toolbar’s delegate object.

    Declaration

    Objective-C

    @property (readwrite, nonatomic, nullable) id<PTEditToolbarDelegate> delegate;

    Swift

    weak var delegate: PTEditToolbarDelegate? { get set }
  • Whether the undo/redo buttons are hidden. The default is NO.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic) BOOL undoRedoHidden;

    Swift

    var undoRedoHidden: Bool { get set }
  • Whether the style edit button is hidden. The default is NO.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic) BOOL styleButtonHidden;

    Swift

    var styleButtonHidden: Bool { get set }
  • Whether the undo button is enabled. The default is NO.

    Declaration

    Objective-C

    @property (getter=isUndoEnabled, assign, readwrite, nonatomic) BOOL undoEnabled;

    Swift

    var isUndoEnabled: Bool { get set }
  • Whether the redo button is enabled. The default is NO.

    Declaration

    Objective-C

    @property (getter=isRedoEnabled, assign, readwrite, nonatomic) BOOL redoEnabled;

    Swift

    var isRedoEnabled: Bool { get set }