DMKAnnotationView Class Reference
| Inherits from | UIView |
|---|---|
| Declared in | DMKAnnotationView.h |
annotation
关联的annotation
@property (nonatomic, strong) id<DMKAnnotation> annotationDiscussion
关联的annotation
Declared In
DMKAnnotationView.h
image
显示的image
@property (nonatomic, strong) UIImage *imageDiscussion
显示的image
Declared In
DMKAnnotationView.h
centerOffset
默认情况下,annotation view的中心位于annotation的坐标位置,可以设置centerOffset改变view的位置,正的偏移使view朝右下方移动,负的朝左上方,单位是像素
@property (nonatomic, assign) CGPoint centerOffsetDiscussion
默认情况下,annotation view的中心位于annotation的坐标位置,可以设置centerOffset改变view的位置,正的偏移使view朝右下方移动,负的朝左上方,单位是像素
Declared In
DMKAnnotationView.h
calloutOffset
默认情况下,弹出的气泡位于view正中上方,可以设置calloutOffset改变view的位置,正的偏移使view朝右下方移动,负的朝左上方,单位是像素
@property (nonatomic, assign) CGPoint calloutOffsetDiscussion
默认情况下,弹出的气泡位于view正中上方,可以设置calloutOffset改变view的位置,正的偏移使view朝右下方移动,负的朝左上方,单位是像素
Declared In
DMKAnnotationView.h
enabled
默认为YES,当为NO时view忽略触摸事件
@property (nonatomic, getter=isEnabled) BOOL enabledDiscussion
默认为YES,当为NO时view忽略触摸事件
Declared In
DMKAnnotationView.h
highlighted
annotationView是否突出显示(一般不需要手动设置)
@property (nonatomic, getter=isHighlighted) BOOL highlightedDiscussion
annotationView是否突出显示(一般不需要手动设置)
Declared In
DMKAnnotationView.h
selected
设置是否处于选中状态, 外部如果要选中请使用mapView的selectAnnotation方法
@property (nonatomic, getter=isSelected) BOOL selectedDiscussion
设置是否处于选中状态, 外部如果要选中请使用mapView的selectAnnotation方法
Declared In
DMKAnnotationView.h
canShowCallout
设置是否可以显示callout,默认为NO
@property (nonatomic, assign) BOOL canShowCalloutDiscussion
设置是否可以显示callout,默认为NO
Declared In
DMKAnnotationView.h
leftCalloutAccessoryView
显示在气泡左侧的view
@property (nonatomic, strong) UIView *leftCalloutAccessoryViewDiscussion
显示在气泡左侧的view
Declared In
DMKAnnotationView.h
rightCalloutAccessoryView
显示在气泡右侧的view
@property (nonatomic, strong) UIView *rightCalloutAccessoryViewDiscussion
显示在气泡右侧的view
Declared In
DMKAnnotationView.h
– initWithAnnotation:
初始化并返回一个annotation view
- (id)initWithAnnotation:(id<DMKAnnotation>)annotationParameters
annotation |
关联的annotation对象 |
|---|
Return Value
初始化成功则返回annotation view,否则返回nil
Declared In
DMKAnnotationView.h
– setSelected:animated:
设置是否处于选中状态, 外部如果要选中请使用mapView的selectAnnotation方法
- (void)setSelected:(BOOL)selected animated:(BOOL)animatedParameters
selected |
是否选中 |
|---|---|
animated |
是否动画设置 |
Declared In
DMKAnnotationView.h