MKMapKit Configuration and Customization

In ICFMainViewController in the sample app, the map view is configured in Interface Builder to default to the standard map type, to display the user location on the map, and to allow scrolling and zooming. ICFMainViewController has a segmented control to allow the user to adjust the type of map displayed.

- (IBAction)mapTypeSelectionChanged:(id)sender{    UISegmentedControl *mapSelection =    (UISegmentedControl *)sender;    switch (mapSelection.selectedSegmentIndex)    {        case 0:            [self.mapView setMapType:MKMapTypeStandard];            break;        case 1:            [self.mapView setMapType:MKMapTypeSatellite];            break;        case 2:            [ ...

Get iOS Components and Frameworks: Understanding the Advanced Features of the iOS SDK now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.