KNMapCalloutBubbleUpdate
INFO
This English reference is based on Directions SDK 1.12.12. For the latest version, see the Korean reference.
- Inherits from: NSObject
Configures a Marker callout bubble, including its title, subtitle, fonts, sizes, and colors.
Constructor
+ calloutBubbleUpdate
Creates a KNMapCalloutBubbleUpdate object.
Example code — + calloutBubbleUpdate
KNMapCalloutBubbleUpdate* calloutBubbleUpdate = [KNMapCalloutBubbleUpdate calloutBubbleUpdate];
calloutBubbleUpdate = [calloutBubbleUpdate setTitle:@"Main Text"]; // Enter the text to display in the callout bubble
calloutBubbleUpdate = [calloutBubbleUpdate setSubTitle:@"Sub Text"]; // Enter the text to display in the callout bubble
[marker updateCalloutBubble calloutBubbleUpdate];+ setTitle
Set the week Title to be displayed on the callout bubble.
Example code — + setTitle:
KNMapCalloutBubbleUpdate* calloutBubbleUpdate = [KNMapCalloutBubbleUpdate setTitle:@"Main Text"];
[marker updateCalloutBubble calloutBubbleUpdate];+ setSubTitle
Set a subtitle to be displayed in the callout bubble.
Example code — + setSubTitle:
KNMapCalloutBubbleUpdate* calloutBubbleUpdate = [KNMapCalloutBubbleUpdate setSubTitle:@"Sub Text"];
[marker updateCalloutBubble calloutBubbleUpdate];+ setTitleFont
Set the font of the main Title.
Example code — + setTitleFont:
KNMapCalloutBubbleUpdate* calloutBubbleUpdate = [KNMapCalloutBubbleUpdate setTitleFont: [UIFont boldSystemFontOfSize:30]];
[marker updateCalloutBubble calloutBubbleUpdate];+ setSubTitleFont
Set the font of the subtitle.
Example code — + setSubTitleFont:
KNMapCalloutBubbleUpdate* calloutBubbleUpdate = [KNMapCalloutBubbleUpdate setSubTitleFont: [UIFont italicSystemFontOfSize:10]];
[marker updateCalloutBubble calloutBubbleUpdate];+ setTitleFontColor
Set the font color of the main title.
Example code — + setTitleFontColor:
KNMapCalloutBubbleUpdate* calloutBubbleUpdate = [KNMapCalloutBubbleUpdate setTitleFontColor: [UIColor blueColor]];
[marker updateCalloutBubble calloutBubbleUpdate];+ setSubTitleFontColor
Set the font color of the subtitle.
Example code — + setSubTitleFontColor:
KNMapCalloutBubbleUpdate* calloutBubbleUpdate = [KNMapCalloutBubbleUpdate setSubTitleFontColor: [UIColor greenColor]];
[marker updateCalloutBubble calloutBubbleUpdate];Methods
setTitle
Set the week Title to be displayed on the callout bubble.
- (KNMapCalloutBubbleUpdate* _Nonnull) setTitle: (NSString* _Nonnull) aTitleParameters
| Name | Description |
|---|---|
aTitle | Title to be displayed |
setSubTitle
Set a subtitle to be displayed in the callout bubble.
- (KNMapCalloutBubbleUpdate* _Nonnull) setSubTitle: (NSString* _Nonnull) aSubTitleParameters
| Name | Description |
|---|---|
aSubTitle | Subtitle to be displayed |
setTitleFont
Set the spelling of Title in the callout bubble.
- (KNMapCalloutBubbleUpdate* _Nonnull) setTitleFont: (UIFont* _Nonnull) aFontParameters
| Name | Description |
|---|---|
aFont | Font of the callout bubble title |
setSubTitleFont
Set the font of the callout bubble subtitle.
- (KNMapCalloutBubbleUpdate* _Nonnull) setSubTitleFont: (UIFont* _Nonnull) aFontParameters
| Name | Description |
|---|---|
aFont | Font of the callout bubble subtitle |
setTitleFontColor
Set the letter color of the title in the callout bubble.
- (KNMapCalloutBubbleUpdate* _Nonnull) setTitleFontColor: (UIColor* _Nonnull) aFontColorParameters
| Name | Description |
|---|---|
aFontColor | Text color of the callout bubble title |
setSubTitleFontColor
Set the font color of the callout bubble subtitle.
- (KNMapCalloutBubbleUpdate* _Nonnull) setSubTitleFontColor: (UIColor* _Nonnull) aFontColorParameters
| Name | Description |
|---|---|
aFontColor | Text color of the callout bubble subtitle |