Domanda

Is there a way to convert an MKPolygon to a UIBezierPath? I have an MKPolygon that is using latitude and longitude coordinates to make up its points. How would those latitude/longitude coordinates translate to coordinates on a UIView?

È stato utile?

Soluzione

MKPolygon *myPolygon;

MKPolygonView *polygonView = [[MKPolygonView alloc] initWithPolygon:myPolygon];

UIBezierPath *myBezierPath = [UIBezierPath bezierPathWithCGPath:polygonView.path];
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top