iphone - MKMapView questions -
I am working with the MKMapView control (SDK v3.0) in the simulator for a few days. I'm able to map an arbitrary place, zoom it, drop a pin, and add an annotation. I'm still a bit fuzzy on the full capabilities of the MKMapView control (outside the simulator), though.
If the 'shows the user location' property of the Mkmap scenario is checked, the iPhone Simulator is a pin at Apple's headquarters, obviously the simulator is not really geocoding the actual location of the phone.
Does this functionality mean, however, is 'one' example of CLLocationManager in Mkmap scenario? Another way is, does the Mkmapview, when 'Show user location' option is selected, to locate the phone's location and drop the pin? If so, does this without giving permission to get this place? Can I set the default zoom level in IB?
Thank you for your time,
Craig Buchanan
Here's an example of zooming programmatically (there is no way IB to do this):
MKCoordinateRegion area; MKCoordinateSpan period; Span.latitudeDelta = 0.02 / 10; // zoom level span.longitudeDelta = 0.02 / 10; CLLocationCoordinate2D location; place. Latitude = latitude; // The first set of these var! place. Lame = longitude; Region.span = period; Area.center = location; [MapView Set Region: Animated Area: TRUE]; [MapView regionThatFits: Area];
I'm not sure this is what you are after, but have you tried to mapView.userLocation
to store CLLocation?
Also remember that the PIN in the iPhone Simulator will always leave at the Apple headquarters until you change the location of the simulated user (from Xcode4) - this Xcode has location service arrow-mark located above the console.