Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Subclasses of MKAnnotationView

I was wondering if anyone knows of any subclasses for the MKAnnotationView class. On apples documentation they say one example is the MKPinAnnotationView so I was wondering if there were other pre-created subclasses like the one used to track the devices current location. If anyone has tips for creating my own subclass of the MKAnnotationView class that be great as well.

Thanks, bubster

like image 492
bubster Avatar asked Oct 22 '10 05:10

bubster


People also ask

What is MKAnnotationView?

MKAnnotationView(NSCoder) A constructor that initializes the object from the data stored in the unarchiver object.

What is Mkplacemark?

A user-friendly description of a location on the map.

What is MapKit in iOS?

MapKit is a powerful API available on iOS devices that makes it easy to display maps, mark locations, enhance with custom data and even draw routes or other shapes on top.


1 Answers

In case anyone is still interested in this:

You can get all the subclasses of a class using the Objective-C runtime functions, as described here: http://cocoawithlove.com/2010/01/getting-subclasses-of-objective-c-class.html

Other classes that inherit from MKAnnotationView are:

MKTransitCalloutView, MKAdAnnotationView, MKUserLocationView, MKUserLocationBreadCrumbView, and MKPinAnnotationView

where MKPinAnnotationView is the only one that is documented. All others are private classes that Apple uses internally.

like image 78
jonathan852 Avatar answered Sep 28 '22 10:09

jonathan852