I am having a issue subclassing MKPolygon
.
I want to add a simple int tag
property but I keep getting an instance of MKPolygon instead of my custom class, so calling setTag:
causes an exception.
The problem is that MKPolygons are created using a class method: polygonWithCoordinates: count:
and I dont know how to turn that into an instance of my class (which includes the tag property).
How would you go about adding a tag property to MKPolygon?
Thank you!