PTToolGroupToolbarDelegate
@protocol PTToolGroupToolbarDelegate <NSObject>
The PTToolGroupToolbarDelegate
protocol allows the adopting class to respond
to messages from the PTToolGroupToolbar
class.
-
Returns the view controller that should be used for presentations from the annotation mode toolbar.
Declaration
Objective-C
- (nonnull UIViewController *) viewControllerForPresentationsFromToolGroupToolbar: (nonnull PTToolGroupToolbar *)toolGroupToolbar;
Swift
optional func viewControllerForPresentations(from toolGroupToolbar: PTToolGroupToolbar) -> UIViewController
Parameters
toolGroupToolbar
The tool group toolbar requesting the view controller
Return Value
the view controller that should be used for presentations
-
Returns the view that should be used as the parent for overlay views, such as the annotation style presets toolbar, shown by the tool group toolbar.
Declaration
Objective-C
- (nonnull UIView *)viewForOverlaysFromToolGroupToolbar: (nonnull PTToolGroupToolbar *)toolGroupToolbar;
Swift
optional func viewForOverlays(from toolGroupToolbar: PTToolGroupToolbar) -> UIView
Parameters
toolGroupToolbar
The tool group toolbar requesting the view
Return Value
the view that should be used as the parent for overlay views