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 *reuseIdentifier
Declared In
MRAnnotationView.h
annotation
The annotation model object that this view represents.
@property (nonatomic, strong) id<MRAnnotation> annotation
Declared 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 centerOffset
Declared In
MRAnnotationView.h
selected
The default is NO
. Becomes YES
when tapped/clicked in the map view.
@property (nonatomic, readonly, getter=isSelected) BOOL selected
Declared In
MRAnnotationView.h
preferredOpacity
Preferred Annotations opacity when added to the map. Defaults to 1.0
@property (nonatomic, assign) CGFloat preferredOpacity
Declared 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 *)reuseIdentifier
Parameters
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)animated
Parameters
selected |
|
---|---|
animated |
|
Declared In
MRAnnotationView.h