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

Discussion

A delegate to receive dismissal events.

Declared In

RBTooltipContainerView.h

  contentView

The content view that will be displayed within the tooltip.

@property (nonatomic, nullable) UIView *contentView

Discussion

The content view that will be displayed within the tooltip.

Declared In

RBTooltipContainerView.h

  isPresented

Whether or not the tooltip is currently presented.

@property (nonatomic, readonly) BOOL isPresented

Discussion

Whether or not the tooltip is currently presented.

Declared In

RBTooltipContainerView.h

  isPresenting

Whether or not the tooltip is currently presenting.

@property (nonatomic, readonly) BOOL isPresenting

Discussion

Whether or not the tooltip is currently presenting.

Declared In

RBTooltipContainerView.h

  isDismissing

Whether or not the tooltip is currently dismissing.

@property (nonatomic, readonly) BOOL isDismissing

Discussion

Whether or not the tooltip is currently dismissing.

Declared In

RBTooltipContainerView.h

  containerView

The view in which the tooltip is being presented.

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

Discussion

The view in which the tooltip is being presented.

Declared In

RBTooltipContainerView.h

  targetView

The view at which the tooltip is being presented.

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

Discussion

The view at which the tooltip is being presented.

Declared In

RBTooltipContainerView.h

  cornerRadius

The corner radius of the tooltip bubble.

@property (nonatomic) CGFloat cornerRadius

Discussion

The corner radius of the tooltip bubble.

Declared In

RBTooltipContainerView.h

  pointerSize

The size of the pointer on the tooltip bubble.

@property (nonatomic) CGFloat pointerSize

Discussion

The size of the pointer on the tooltip bubble.

Declared In

RBTooltipContainerView.h

  backgroundColor

The background color of the tooltip bubble.

@property (nonatomic, nullable) UIColor *backgroundColor

Discussion

The background color of the tooltip bubble.

Declared In

RBTooltipContainerView.h

  disableTapToDismiss

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

@property (nonatomic) BOOL disableTapToDismiss

Discussion

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

Declared In

RBTooltipContainerView.h

  borderColor

The color of the border of the tooltip bubble.

@property (nonatomic, nullable) UIColor *borderColor

Discussion

The color of the border of the tooltip bubble.

Declared In

RBTooltipContainerView.h

  borderWidth

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

@property (nonatomic) CGFloat borderWidth

Discussion

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

Declared In

RBTooltipContainerView.h

  animationType

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

@property (nonatomic) RBTooltipAnimationType animationType

Discussion

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

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.

Discussion

Presents the tooltip.

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.

Discussion

Dismisses the tooltip.

Declared In

RBTooltipContainerView.h