title: UISegmentedControl Not functioning
body: <p>Hi im trying to use segmented control to swap between three map views however its not working. </p>
  
  <p>My IBAction method is as follows. </p>
  
  <pre><code>- (IBAction)segmentSwitch:(id)sender {
  
      NSLog(@"inside segmented switch");
      NSLog(@"selected segment %@",selectedSegment);
      if (selectedSegment == 0) {
          mapView.mapType = MKMapTypeStandard; 
  
      }
      else{
          mapView.mapType = MKMapTypeHybrid; 
  
      }
  }
  </code></pre>
  
  <p>I have declared UISegementedControl as an outlet and connected it to the xib view. I have also connected this method with touch down/touch up inside/outside. It still doesn't print the NSLog commands given above. Which means this method is not accessed at all? </p>