RBTooltipContainerView Class Reference

Inherits from UIView
Declared in RBTooltipContainerView.h

Overview

A tooltip container view that can be configured to display any content.

  delegate

A delegate to receive dismissal events.

@property (nonatomic, weak, nullable) id<RBTooltipViewDelegate> delegate

Declared In

RBTooltipContainerView.h

  contentView

The content view that will be displayed within the tooltip.

@property (nonatomic, nullable) UIView *contentView

Declared In

RBTooltipContainerView.h

  isPresented

Whether or not the tooltip is currently presented.

@property (nonatomic, readonly) BOOL isPresented

Declared In

RBTooltipContainerView.h

  isPresenting

Whether or not the tooltip is currently presenting.

@property (nonatomic, readonly) BOOL isPresenting

Declared In

RBTooltipContainerView.h

  isDismissing

Whether or not the tooltip is currently dismissing.

@property (nonatomic, readonly) BOOL isDismissing

Declared In

RBTooltipContainerView.h

  containerView

The view in which the tooltip is being presented.

@property (nonatomic, readonly, weak, nullable) UIView *containerView

Declared In

RBTooltipContainerView.h

  targetView

The view at which the tooltip is being presented.

@property (nonatomic, readonly, weak, nullable) UIView *targetView

Declared In

RBTooltipContainerView.h

  cornerRadius

The corner radius of the tooltip bubble.

@property (nonatomic) CGFloat cornerRadius

Declared In

RBTooltipContainerView.h

  pointerSize

The size of the pointer on the tooltip bubble.

@property (nonatomic) CGFloat pointerSize

Declared In

RBTooltipContainerView.h

  backgroundColor

The background color of the tooltip bubble.

@property (nonatomic, nullable) UIColor *backgroundColor

Declared In

RBTooltipContainerView.h

  disableTapToDismiss

Whether the tooltip bubble should not be dismissed when tapped by the user. Default = false.

@property (nonatomic) BOOL disableTapToDismiss

Declared In

RBTooltipContainerView.h

  borderColor

The color of the border of the tooltip bubble.

@property (nonatomic, nullable) UIColor *borderColor

Declared In

RBTooltipContainerView.h

  borderWidth

The width of the border of the tooltip bubble in points (pt).

@property (nonatomic) CGFloat borderWidth

Declared In

RBTooltipContainerView.h

  animationType

The type of animation that should be used when presenting and dismissing the tooltip.

@property (nonatomic) RBTooltipAnimationType animationType

Declared In

RBTooltipContainerView.h

– presentPointingAtView:inView:animated:completion:

Presents the tooltip.

- (void)presentPointingAtView:(nonnull UIView *)targetView inView:(nonnull UIView *)containerView animated:(BOOL)animated completion:(nullable dispatch_block_t)completion

Parameters

targetView

The view at which the tooltip should be presented.

containerView

The containing view in which the tooltip should be presented.

animated

Whether or not the transition should be animated.

completion

An optional block to be called when the presentation is complete.

Declared In

RBTooltipContainerView.h

– dismissAnimated:completion:

Dismisses the tooltip.

- (void)dismissAnimated:(BOOL)animated completion:(nullable dispatch_block_t)completion

Parameters

animated

Whether or not the transition should be animated.

completion

An optional block to be called when the dismissal is complete.

Declared In

RBTooltipContainerView.h