MKMapView maptype not changing!
        Posted  
        
            by 
                TheLearner
            
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by TheLearner
        
        
        
        Published on 2011-01-12T13:51:27Z
        Indexed on 
            2011/01/12
            13:53 UTC
        
        
        Read the original article
        Hit count: 232
        
I cannot understand why my MKMapView does not want to change to satellite view. This method is called and case 1 is called I have stepped over it but it simply does not change to satellite type it always changes to standard. It only works when it goes back to Map type. Anyone have any ideas?
- (IBAction)mapSatelliteSegmentControlTapped:(UISegmentedControl *)sender
{
    switch (sender.selectedSegmentIndex)
    {
        case 1: //Satellite 
            self.mapView.mapType = MKMapTypeSatellite;
        default:  //Map 
            self.mapView.mapType = MKMapTypeStandard;
    }
}
        © Stack Overflow or respective owner