I've currently got MKAnnoations
with a circle image on them, displayed on an MKMapView
. When I place down a MKPolyline
the lines meet in the middle of the circle and then leave it. Is it possible to clip the ends of MKPolyline
s so that the lines just touch the edge of the circle, rather than going to the centre of the annoation?
Cheers, SebOH
P.S: I can't just put a white circle over it as the line is over a MKMapView
that is unblockable
Using
MKPathOverlayRenderer
might be your best bet.Using a CGPath, I believe you get a little bit more control over the shape than using MKAnnotations, and there are lots of references on how to subtract one path from another using CoreGraphics.
HTH