Great! Now that you have both an MKOverlay and MKOverlayRenderer, add them to your map view. To learn more about Core Graphics, check out the Core Graphics tutorial series. However, you can see the code above uses the passed MKMapRect to get a CGRect in which to draw the image in the provided context. Note: The details of Core Graphics drawing are outside the scope of this tutorial. It defines how MapKit should render this view when given a specific MKMapRect, MKZoomScale and the CGContext of the graphic context, with the intent to draw the overlay image onto the context at the appropriate scale.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |