MKMapView

class MKMapView : UIView, NSCoding
  • SwifterSwift: Dequeue reusable MKAnnotationView using class type

    Declaration

    Swift

    func dequeueReusableAnnotationView<T>(withClass name: T.Type) -> T? where T : MKAnnotationView

    Parameters

    name

    MKAnnotationView type.

    Return Value

    optional MKAnnotationView object.

  • SwifterSwift: Register MKAnnotationView using class type

    Declaration

    Swift

    @available(iOS 11.0, tvOS 11.0, OSX 10.13, *)
    func register<T>(annotationViewWithClass name: T.Type) where T : MKAnnotationView

    Parameters

    name

    MKAnnotationView type.

  • SwifterSwift: Dequeue reusable MKAnnotationView using class type

    Declaration

    Swift

    @available(iOS 11.0, tvOS 11.0, OSX 10.13, *)
    func dequeueReusableAnnotationView<T>(withClass name: T.Type, for annotation: MKAnnotation) -> T? where T : MKAnnotationView

    Parameters

    name

    MKAnnotationView type.

    annotation

    annotation of the mapView.

    Return Value

    optional MKAnnotationView object.