PTEditToolbarDelegate
@protocol PTEditToolbarDelegate <UIToolbarDelegate>
The PTEditToolbarDelegate
procotol defines the interface that edit toolbar delegate objects
implement to respond to toolbar events.
-
Notifies the delegate that an undo action has been requested.
Declaration
Objective-C
- (void)editToolbarUndoChange:(nonnull PTEditToolbar *)editToolbar;
Swift
optional func editToolbarUndoChange(_ editToolbar: PTEditToolbar)
-
Notifies the delegate that a redo action has been requested.
Declaration
Objective-C
- (void)editToolbarRedoChange:(nonnull PTEditToolbar *)editToolbar;
Swift
optional func editToolbarRedoChange(_ editToolbar: PTEditToolbar)
-
Notifies the delegate that all changes should be discarded and the toolbar should be closed.
Declaration
Objective-C
- (void)editToolbarDidCancel:(nonnull PTEditToolbar *)editToolbar;
Swift
optional func editToolbarDidCancel(_ editToolbar: PTEditToolbar)
-
Notifies the delegate that the changes should be saved.
Declaration
Objective-C
- (void)editToolbarDidCommit:(nonnull PTEditToolbar *)editToolbar;
Swift
optional func editToolbarDidCommit(_ editToolbar: PTEditToolbar)
-
Notifies the delegate that the style picker should be shown/hidden.
Declaration
Objective-C
- (void)editToolbarToggleStylePicker:(nonnull UIBarButtonItem *)sender;
Swift
optional func editToolbarToggleStylePicker(_ sender: UIBarButtonItem)