路况光柱图
More...
#import <TNKNaviTrafficBarWidget.h>
◆ initWithFrame:orientation:
| - (instancetype) initWithFrame: |
|
(CGRect) |
frame |
| orientation: |
|
(TNKNaviTrafficBarWidgetOrientation) |
orientation |
|
|
| |
◆ setCarIcon:size:
| - (void) setCarIcon: |
|
(UIImage *) |
icon |
| size: |
|
(CGSize) |
size |
|
|
| |
在导航开始之前可设置小车的图标以及大小
- Parameters
-
◆ setTotalDistanceLabelColor:
| - (void) setTotalDistanceLabelColor: |
|
(UIColor *) |
totalDistanceLabelColor |
|
◆ borderColor
◆ borderWidth
◆ colorConfig
| - (NSDictionary<NSNumber *, UIColor *>*) colorConfig |
|
readwritenonatomiccopy |
交通状态的颜色 例如,@(TNKRouteTrafficDataStatusSmooth): [UIColor greenColor], @(TNKRouteTrafficDataStatusSlow) : [UIColor yellowColor]}
◆ cornerRadius
◆ labelColor
◆ orientation
| - (TNKNaviTrafficBarWidgetOrientation) orientation |
|
readwritenonatomicassign |
视图展示方向,默认为TNKNaviTrafficBarWidgetOrientationHorizontal
◆ wholeJourney
光柱图是否表示全程,默认为YES。全程表示偏航后考虑偏航前行驶的里程,车标不会重新回到光柱图底部。
The documentation for this class was generated from the following file: