SKAnnotationView Class Reference

Inherits from NSObject
Declared in SKAnnotationView.h

Overview

Can be used to set a custom view as a map annotation.

  view

The view to be rendered as an annotation.

@property (nonatomic, readonly, strong) UIView *view

Discussion

The view to be rendered as an annotation.

Declared In

SKAnnotationView.h

  reuseIdentifier

A unique identifier for the view which is used for caching.

@property (nonatomic, readonly, strong) NSString *reuseIdentifier

Discussion

A unique identifier for the view which is used for caching.

Declared In

SKAnnotationView.h

– initWithView:reuseIdentifier:

Initializes an SKAnnotationView object with the given parameters.

- (id)initWithView:(UIView *)view reuseIdentifier:(NSString *)reuseIdentifier

Parameters

view

A view object containing the visual representation of the SKAnnotationView.

reuseIdentifier

A string identifying the SKAnnotationView object to be reused.

Return Value

A newly initialized SKAnnotationView instance.

Discussion

Initializes an SKAnnotationView object with the given parameters.

Declared In

SKAnnotationView.h