TTCalloutOutlineView
Objective-C
@interface TTCalloutOutlineView <TTCalloutView>
Swift
class TTCalloutOutlineView : TTCalloutView
Decorator view which takes either plain text or UIView and wraps it up with fancy callout.
-
Builds callout with single line UILabel
Declaration
Objective-C
- (instancetype _Nonnull)initWithText:(NSString *_Nonnull)text;Swift
init(text: String)Parameters
texttext to be displayed as content of callout
Return Value
TTCalloutOutlineView
-
Builds callout with custom UIView
Declaration
Objective-C
- (instancetype _Nonnull)initWithUIView:(id)view;Swift
init(uiView view: Any!)Parameters
viewUIView to be embed inside of callout
Return Value
TTCalloutOutlineView
-
When callout is attached to map either to annotation or any other displayable object provides coordinates anchor point. If callout is not attached to map is kCLLocationCoordinate2DInvalid
Declaration
Objective-C
@property (nonatomic) CLLocationCoordinate2D coordinate;Swift
var coordinate: CLLocationCoordinate2D { get set } -
When resize of callout created with custom UIView is needed after is displayed on map, calling this method will invalidate also size of TTCalloutOutlineView
Declaration
Objective-C
- (void)updateContentSize:(CGSize)newSize;Swift
func updateContentSize(_ newSize: CGSize)Parameters
newSizeCGSize
TTCalloutOutlineView Class Reference