UIView(Tooltip) Category Reference
Conforms to | RBTooltipViewDelegate |
---|---|
Declared in | UIView+Tooltip.h |
– isPresentingTooltipForView:
Whether or not a tooltip is being presented at the descendent view.
- (BOOL)isPresentingTooltipForView:(nonnull UIView *)view
Parameters
view |
The view, which must be a descendent in the heirarchy. |
---|
Return Value
Whether or not a tooltip is presented at the given view.
Discussion
Whether or not a tooltip is being presented at the descendent view.
Declared In
UIView+Tooltip.h
– presentTooltipWithSchema:forView:completion:
Presents a tooltip with the given message at the given descendent view.
- (void)presentTooltipWithSchema:(nonnull RBManagedTooltipSchema *)schema forView:(nonnull UIView *)view completion:(nullable dispatch_block_t)completion
Parameters
schema |
The schema that describes the tooltip to present. |
---|---|
view |
The view to point the tooltip at. |
completion |
An optional block to be called when the tooltip has been presented. |
Discussion
Presents a tooltip with the given message at the given descendent view.
Declared In
UIView+Tooltip.h
– presentedTooltipViewForView:
Retrieves the RBTooltipView
that is currently presented pointing at the given view.
- (nullable RBTooltipView *)presentedTooltipViewForView:(nonnull UIView *)view
Parameters
view |
The view. |
---|
Return Value
The RBTooltipView
object, or nil
if none is presented.
Discussion
Retrieves the RBTooltipView
that is currently presented pointing at the given view.
Declared In
UIView+Tooltip.h
– dismissTooltipForView:completion:
Dismisses the tooltip currently presented at the given view.
- (void)dismissTooltipForView:(nonnull UIView *)view completion:(nullable dispatch_block_t)completion
Parameters
view |
The view. |
---|---|
completion |
An optional block to be called when the tooltip has been dismissed. |
Discussion
Dismisses the tooltip currently presented at the given view.
Declared In
UIView+Tooltip.h
– dismissAllTooltipsWithCompletion:
Dismisses all tooltips currently presented at views.
- (void)dismissAllTooltipsWithCompletion:(nullable dispatch_block_t)completion
Parameters
completion |
An optional block to be called when the tooltips have been dismissed. |
---|
Discussion
Dismisses all tooltips currently presented at views.
Declared In
UIView+Tooltip.h
– tooltipDidPresentForView:
Called when a tooltip has been presented for the given view.
- (void)tooltipDidPresentForView:(nonnull UIView *)view
Parameters
view |
The view for which the tooltip has been presented. |
---|
Discussion
Called when a tooltip has been presented for the given view.
Declared In
UIView+Tooltip.h
– tooltipDidDismissForView:
Called when a tooltip has been dismissed for the given view.
- (void)tooltipDidDismissForView:(nonnull UIView *)view
Parameters
view |
The view for which the tooltip has been dismissed. |
---|
Discussion
Called when a tooltip has been dismissed for the given view.
Declared In
UIView+Tooltip.h