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 8102075
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T23:08:41+00:00 2026-06-05T23:08:41+00:00

I have been all over stackoverflow and all over Google and I cannot seem

  • 0

I have been all over stackoverflow and all over Google and I cannot seem to figure this one out. Here’s my scenario:

I have my app’s “main screen” where the user first makes decisions about what they’re going to do. The app works off of a CoreData database which is created by “importing” XML files. The user can choose to open an XML file attached to an email in my application, which automatically triggers my main screen to show up and run the import of the file.

I can get this far without any issues. In my storyboard, I have a segue called ParseSegue from my main screen to a view controller which will handle the parsing and give the user some status information.

When the main screen is called via the email app, the main screen automatically calls

[self performSegueWithIdentifier:@"ParseSegue" sender:self];

I then check for this segue name in prepareForSegue and it’s a valid name. This is where I assign the file URL to the parser controller so that it can parse the correct file.

The problem is that the segue never actually happens. The prepareForSegue method gets called, the name “ParseSegue” can be checked against and is valid, but the segue itself simply does not happen. If I add a button to the main screen and tell it to perform the segue within the storyboard, it works fine. But calling it programmatically seems to do nothing.

  • 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-05T23:08:43+00:00Added an answer on June 5, 2026 at 11:08 pm

    It turns out that I was looking in the wrong place entirely. My problem was that in my appDelegate, where the app reacts to the incoming URL, I was inadvertently creating a new instance of my storyboard and my main view controller. This was different than the one which was already active and may or may not have been on the screen.

    The controller I was creating was never actually shown. I only noticed this because the log:

    NSLog(@"Source: %@", [segue.sourceViewController description]);
    

    would show different memory addresses for my test (the button push) and the import test. This led me to believe that I was, in fact, working with two different instances of the storyboard and the app’s main view controller. Thanks to Paul for the suggestion of logging the destination and the source controllers.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i have been all over the web, stackoverflow included and just can't seem to
I have been researching all over the internet about this, and unfortunately cannot find
I have been reading all over the web about this and still can't understand
Questions similar to this have been asked all over, but I haven't been able
Before anyone close this question or complain... I've been looking all over StackOverFlow site
Ok, I've got a unique one here and I've been searching all over the
I have been looking all over for an answer to this question, but can't
I have been searching the web and all over stackoverflow, but yet couldn't find
This is my first post here on Stackoverflow, though over the years I've been
I have been looking all over for a way to do this but most

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.