VBDCalloutViewDelegate

@protocol VBDCalloutViewDelegate <NSObject>

The VBDCalloutViewDelegate protocol defines a set of optional methods that you can use to receive messages from an object that conforms to the VBDCalloutView protocol. The callout view uses these methods to inform the delegate that the user has interacted with the the callout view.

  • Returns a Boolean value indicating whether the entire callout view “highlights” when tapped. The default value is YES, which means the callout view highlights when tapped.

    The return value of this method is ignored unless the delegate also responds to the -calloutViewTapped method.

    Declaration

    Objective-C

    - (BOOL)calloutViewShouldHighlight:
        (nonnull UIView<VBDCalloutView> *)calloutView;
  • Tells the delegate that the callout view has been tapped.

    Declaration

    Objective-C

    - (void)calloutViewTapped:(nonnull UIView<VBDCalloutView> *)calloutView;
  • Called before the callout view appears on screen, or before the appearance animation will start.

    Declaration

    Objective-C

    - (void)calloutViewWillAppear:(nonnull UIView<VBDCalloutView> *)calloutView;
  • Called after the callout view appears on screen, or after the appearance animation is complete.

    Declaration

    Objective-C

    - (void)calloutViewDidAppear:(nonnull UIView<VBDCalloutView> *)calloutView;