
37.91904192681665
37.46543388598137
15.35832653742206
14.60128369746704
-0.1556640799496235
< /code>
код моего чертежа (где, я думаю, должно произойти вращение): < /p>
- (void)drawMapRect:(MKMapRect)mapRect
zoomScale:(MKZoomScale)zoomScale
inContext:(CGContextRef)context {
CGImageRef imageReference = self.overlayImage.CGImage;
// TODO: rotate image by self.rotation degrees around center.
MKMapRect theMapRect = self.overlay.boundingMapRect;
CGRect theRect = [self rectForMapRect:theMapRect];
CGContextScaleCTM(context, 1.0, -1.0);
CGContextTranslateCTM(context, 0.0, -theRect.size.height);
CGContextDrawImage(context, theRect, imageReference);
}
Подробнее здесь: https://stackoverflow.com/questions/173 ... h-rotation
Мобильная версия