Zoom to a Region in MapView

Discussion in 'iOS Programming' started by RagingGoat, May 3, 2013.

  1. RagingGoat macrumors 6502

    Joined:
    Jun 21, 2010
    #1
    I have a map view and I have the users location showing up. I'd like to have it automatically zoom to a particular region, such as a particular state. Ultimately I'm going to have multiple pins covering a broader area so it makes sense to just zoom to a region. Can anyone point me in the right direction?
     
  2. TheWatchfulOne macrumors 6502

    TheWatchfulOne

    Joined:
    Jun 19, 2009
    #2
    Are you using MapKit? The MKMapView class has methods for setting the view and zoom level of the map. It can zoom to an area based on coordinates you give it or based on whatever place marks are added to the map. I suggest looking at Apple's documentation on the MapKit framework.
     

Share This Page