title: Segue between two view controllers
body: <p><img src="https://i.stack.imgur.com/VyBbS.png" alt="enter image description here"></p>
  
  <p>On my storyboard (shown above), I have a ViewController which holds an MKMapView with annotations. These annotations hold a disclosure icon, which when tapped, should navigate the user to another ViewController. To do so I've created a push segue between the view controllers. I've then given it an identifier of 'showDetail' and implemented the following code.</p>
  
  <pre><code>- (void)mapView:(MKMapView *)mapView annotationView:(MKAnnotationView *)view calloutAccessoryControlTapped:(UIControl *)control
  {
      [self performSegueWithIdentifier:@"showDetail" sender:self];
  }
  </code></pre>
  
  <p>However I get the following error.</p>
  
  <pre><code>Could not find a navigation controller for segue 'showDetail'. Push segues can only be used when the source controller is managed by an instance of UINavigationController.'
  </code></pre>
  
  <p>Where am I going wrong? I have tried changing my source UIViewController to a UINavigationController, but the view then just displays as a black screen.</p>