LuxChat  2.0
Instant messenger for iOS
Instance Methods | Properties | List of all members
FBSDKTooltipView Class Reference

#import <FBSDKTooltipView.h>

Inheritance diagram for FBSDKTooltipView:
FBSDKLoginTooltipView

Instance Methods

(instancetype) - initWithTagline:message:colorStyle:
 
(void) - presentFromView:
 
(void) - presentInView:withArrowPosition:direction:
 
(void) - dismiss
 

Properties

CFTimeInterval displayDuration
 
FBSDKTooltipColorStyle colorStyle
 
NSString * message
 
NSString * tagline
 

Detailed Description

Tooltip bubble with text in it used to display tips for UI elements, with a pointed arrow (to refer to the UI element).

The tooltip fades in and will automatically fade out. See displayDuration.

Method Documentation

- (void) dismiss

Remove tooltip manually.

Calling this method isn't necessary - tooltip will dismiss itself automatically after the displayDuration.

- (instancetype) initWithTagline: (NSString *)  tagline
message: (NSString *)  message
colorStyle: (FBSDKTooltipColorStyle)  colorStyle 

Designated initializer.

Parameters
taglineFirst part of the label, that will be highlighted with different color. Can be nil.
messageMain message to display.
colorStyleColor style to use for tooltip.

If you need to show a tooltip for login, consider using the FBSDKLoginTooltipView view.

See also
FBSDKLoginTooltipView
- (void) presentFromView: (UIView *)  anchorView

Show tooltip at the top or at the bottom of given view. Tooltip will be added to anchorView.window.rootViewController.view

Parameters
anchorViewview to show at, must be already added to window view hierarchy, in order to decide where tooltip will be shown. (If there's not enough space at the top of the anchorView in window bounds - tooltip will be shown at the bottom of it)

Use this method to present the tooltip with automatic positioning or use -presentInView:withArrowPosition:direction: for manual positioning If anchorView is nil or has no window - this method does nothing.

- (void) presentInView: (UIView *)  view
withArrowPosition: (CGPoint)  arrowPosition
direction: (FBSDKTooltipViewArrowDirection)  arrowDirection 

Adds tooltip to given view, with given position and arrow direction.

Parameters
viewView to be used as superview.
arrowPositionPoint in view's cordinates, where arrow will be pointing
arrowDirectionwhenever arrow should be pointing up (message bubble is below the arrow) or down (message bubble is above the arrow).

Property Documentation

- (FBSDKTooltipColorStyle) colorStyle
readwritenonatomicassign

Gets or sets the color style after initialization.

Defaults to value passed to -initWithTagline:message:colorStyle:.

- (CFTimeInterval) displayDuration
readwritenonatomicassign

Gets or sets the amount of time in seconds the tooltip should be displayed.

Set this to zero to make the display permanent until explicitly dismissed. Defaults to six seconds.

- (NSString*) message
readwritenonatomiccopy

Gets or sets the message.

- (NSString*) tagline
readwritenonatomiccopy

Gets or sets the optional phrase that comprises the first part of the label (and is highlighted differently).


The documentation for this class was generated from the following file: