|
TencentMapSDK_iOS_3D_v1.3.3
|
提供类似大头针效果的annotationView 更多...
#import <QPinAnnotationView.h>
属性 | |
| QPinAnnotationColor | pinColor |
| 大头针的颜色 | |
| BOOL | animatesDrop |
| 动画效果 | |
属性 继承自 QAnnotationView | |
| NSString * | reuseIdentifier |
| 复用标识 | |
| id< QAnnotation > | annotation |
| 关联的annotation | |
| UIImage * | image |
| 显示的image | |
| CGPoint | centerOffset |
| 默认情况下,annotationView的中心位于annotation的坐标位置,可以设置centerOffset改变view的位置,正的偏移使view朝右下方移动,负的朝左上方,单位是像素 | |
| CGPoint | calloutOffset |
| 默认情况下,弹出的气泡位于view正中上方,可以设置calloutOffset改变view的位置,正的偏移使view朝右下方移动,负的朝左上方,单位是像素 | |
| BOOL | enabled |
| 默认为YES,当为NO时view忽略触摸事件 | |
| BOOL | highlighted |
| annotationView是否突出显示(一般不需要手动设置) | |
| BOOL | selected |
| 是否处于选中状态 | |
| BOOL | canShowCallout |
| 设置是否可以显示callout,默认为NO | |
| UIView * | leftCalloutAccessoryView |
| 气泡左侧的view | |
| UIView * | rightCalloutAccessoryView |
| 气泡右侧的view | |
| BOOL | draggable |
| 是否支持拖动 | |
| QAnnotationViewDragState | dragState |
| 当前view拖动状态 | |
额外继承的成员函数 | |
构造函数 继承自 QAnnotationView | |
| (id) | - initWithAnnotation:reuseIdentifier: |
| 初始化并返回一个annotationView 更多... | |
| (void) | - prepareForReuse |
| 当从reuse队列里取出时被调用 | |
| (void) | - setSelected:animated: |
| 设置是否处于选中状态 更多... | |
| (void) | - setDragState:animated: |
| 设置当前view拖动状态 更多... | |
提供类似大头针效果的annotationView