November 2013
Intermediate to advanced
576 pages
19h 3m
English
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: [ ...
Read now
Unlock full access