MKOverlay View is blurred

前端 未结 3 811
醉梦人生
醉梦人生 2021-01-15 02:52

I\'m trying to add a png image as a custom map using MKOverlayView. I\'m almost there - I am able to get the image lined up in the right place, and I know that the -drawMapR

3条回答
  •  暗喜
    暗喜 (楼主)
    2021-01-15 03:41

    Get rid of CGContextScaleCTM(context, 1.0, -1.0); and do a vertical flip on your image in preview instead. the mapkit seems to use the context information to determine which part of the image to render more clearly. Know it's been a while, but hope it helps!

提交回复
热议问题