Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

RagingGoat

macrumors 6502
Original poster
Jun 21, 2010
308
15
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?
 
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?

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.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.