MRAnnotationView Class Reference
| Inherits from | UIView |
|---|---|
| Declared in | MRAnnotationView.h |
reuseIdentifier
A string that identifies this annotation view as reusable. (read-only)
@property (nonatomic, readonly, copy) NSString *reuseIdentifierDeclared In
MRAnnotationView.h
annotation
The annotation model object that this view represents.
@property (nonatomic, strong) id<MRAnnotation> annotationDeclared In
MRAnnotationView.h
centerOffset
The offset at which to display the view.
By default, the center of the annotation view is placed over the point of the annotation.
centerOffset is the offset in screen points from the center of the annotation view.
@property (nonatomic) CGPoint centerOffsetDeclared In
MRAnnotationView.h
selected
The default is NO. Becomes YES when tapped/clicked in the map view.
@property (nonatomic, readonly, getter=isSelected) BOOL selectedDeclared In
MRAnnotationView.h
preferredOpacity
Preferred Annotations opacity when added to the map. Defaults to 1.0
@property (nonatomic, assign) CGFloat preferredOpacityDeclared In
MRAnnotationView.h
– initWithAnnotation:reuseIdentifier:
Initializes a new annotation view. Use the same reuseIdentifier for annotations that share the same kind of view, so that those
views can be recycled.
- (instancetype)initWithAnnotation:(id<MRAnnotation>)annotation reuseIdentifier:(NSString *)reuseIdentifierParameters
annotation |
The annotation to associate with this view. |
|---|---|
reuseIdentifier |
A string to classify this view for recycling purposes. |
Declared In
MRAnnotationView.h
– setSelected:animated:
Sets the selected state for this annotation view, optionally animating the change.
- (void)setSelected:(BOOL)selected animated:(BOOL)animatedParameters
selected |
|
|---|---|
animated |
|
Declared In
MRAnnotationView.h