10 #import <UIKit/UIKit.h> 23 @protocol MAAnnotation;
32 @property (nonatomic, assign) NSInteger
zIndex;
35 @property (nonatomic, strong) id <MAAnnotation>
annotation;
38 @property (nonatomic, strong) UIImage *
image;
41 @property (nonatomic, strong, readonly) UIImageView *
imageView;
53 @property (nonatomic, getter=isEnabled) BOOL
enabled;
59 @property (nonatomic, getter=isSelected) BOOL
selected;
71 @property (nonatomic, getter=isDraggable) BOOL
draggable;
84 - (void)setSelected:(BOOL)selected animated:(BOOL)animated;
92 - (id)initWithAnnotation:(
id <MAAnnotation>)annotation reuseIdentifier:(NSString *)reuseIdentifier;
UIImageView * imageView
image所对应的UIImageView since 5.0.0
Definition: MAAnnotationView.h:41
BOOL selected
设置是否处于选中状态, 外部如果要选中请使用mapView的selectAnnotation方法
Definition: MAAnnotationView.h:59
BOOL canAdjustPositon
弹出默认弹出框时,是否允许地图调整到合适位置来显示弹出框,默认为YES
Definition: MAAnnotationView.h:77
MACustomCalloutView * customCalloutView
自定制弹出框view, 用于替换默认弹出框. 注意:此弹出框不会触发-(void)mapView: didAnnotationViewCalloutTa...
Definition: MAAnnotationView.h:44
MAAnnotationViewDragState dragState
当前view的拖动状态
Definition: MAAnnotationView.h:74
自定义annotationView的弹出框. 注意:不会触发-(void)mapView: didAnnotationViewCalloutTapped: since 5...
Definition: MACustomCalloutView.h:13
UIImage * image
显示的image
Definition: MAAnnotationView.h:38
CGPoint calloutOffset
弹出框默认位于view正中上方,可以设置calloutOffset改变view的位置,正的偏移使view朝右下方移动,负的朝左...
Definition: MAAnnotationView.h:50
拖动结束
Definition: MAAnnotationView.h:20
静止状态
Definition: MAAnnotationView.h:16
void prepareForReuse()
当从reuse队列里取出时被调用, 子类重新必须调用super
UIView * leftCalloutAccessoryView
显示在默认弹出框左侧的view
Definition: MAAnnotationView.h:65
BOOL draggable
是否支持拖动
Definition: MAAnnotationView.h:71
BOOL canShowCallout
是否允许弹出callout
Definition: MAAnnotationView.h:62
UIView * rightCalloutAccessoryView
显示在默认弹出框右侧的view
Definition: MAAnnotationView.h:68
取消拖动
Definition: MAAnnotationView.h:19
MAAnnotationViewDragState
MAAnnotationView拖动状态
Definition: MAAnnotationView.h:14
拖动中
Definition: MAAnnotationView.h:18
NSString * reuseIdentifier
复用标识
Definition: MAAnnotationView.h:29
id< MAAnnotation > annotation
关联的annotation
Definition: MAAnnotationView.h:35
标注view
Definition: MAAnnotationView.h:26
CGPoint centerOffset
annotationView的中心默认位于annotation的坐标位置,可以设置centerOffset改变view的位置,正的偏移使view...
Definition: MAAnnotationView.h:47
开始拖动
Definition: MAAnnotationView.h:17
BOOL enabled
默认为YES,当为NO时view忽略触摸事件
Definition: MAAnnotationView.h:53
BOOL highlighted
是否高亮
Definition: MAAnnotationView.h:56
NSInteger zIndex
z值,大值在上,默认为0。类似CALayer的zPosition。zIndex属性只有在viewForAnnotation或者didAddAnnotation...
Definition: MAAnnotationView.h:32