Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8737999
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T10:38:50+00:00 2026-06-13T10:38:50+00:00

On my storyboard (shown above), I have a ViewController which holds an MKMapView with

  • 0

enter image description here

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.

- (void)mapView:(MKMapView *)mapView annotationView:(MKAnnotationView *)view calloutAccessoryControlTapped:(UIControl *)control
{
    [self performSegueWithIdentifier:@"showDetail" sender:self];
}

However I get the following error.

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.'

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.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T10:38:52+00:00Added an answer on June 13, 2026 at 10:38 am

    You actually have to set your UIViewController as the root controller of a UINavigationController (or pushed through from a view controller w/ a navcontroller). To do that

    • Drag a new navigation controller into your storyboard – it will by
      default be attached to a tableview controller
    • Delete the tableview controller Right click on the navgiation
      controller, and connect the “Root View Controller” property to your
      existing view controller
    • Move the entry point arrow from your view controller to the root
      view controller
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i've got a ZBarReaderView created from storyboard with 216x20 px which is shown as
I have a viewController I've built in storyboard. I also have a NSObject Subclass
Using storyboard, I have a table view controller containing multiple dynamic prototype cells. One
My storyboard seems locked. I have added new labels and imageviews to two different
I have the following Storyboard: I dont have enough rep points yet for images
I have a storyboard that runs forever with autoreverse for lets say 10 seconds.
This is for a blog-type app, in which the blog post is shown and
I created my app using StoryBoard. Then, I added objective-c class to have .h
I'm trying to add a UIWebView inside a clean UIViewController which in my Storyboard
NavigationControllers have ViewController stacks to manage, and limited animation transitions. Adding a view controller

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.