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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T21:13:12+00:00 2026-06-05T21:13:12+00:00

I think i must be missing something simple here but I can’t figure out

  • 0

I think i must be missing something simple here but I can’t figure out what is it.

I’ve got to support multiple segues from the same viewcontroller, so naturally i’d like to use the segue identifiers. My code is not working for some reason, let me give you an example:

This code as follows:

-(void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {

    NSString *segueID = @"createBuildSegue";

    if (segue.identifier == @"createBuildSegue") {
        UINavigationController *navController = segue.destinationViewController;
        CreateBuildTableViewController *rootController = [navController.viewControllers objectAtIndex:0];
        [rootController setOptionsDictionary:[[DataManager sharedDataManager]optionsDictionary]];

        NSLog(@"Worked");
    }
    NSLog(@"segue identifier = %@", segue.identifier);
    NSLog(@"segueID = %@", segueID);

}

here is the output from the console:

2012-06-17 22:32:06.921 RubiconMobile[26943:f803] segue identifier = createBuildSegue
2012-06-17 22:32:06.922 RubiconMobile[26943:f803] segueID = createBuildSegue

This does not work and I can not figure out why. realllly bugging me

any ideas?

Thanks!

  • 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-05T21:13:14+00:00Added an answer on June 5, 2026 at 9:13 pm

    Compare strings using isEqualToString:, not ==. The latter checks for pointer equality, the former to see if the strings are in fact the same string.

    if ([segue.identifier isEqualToString: @"createBuildSegue"])
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I think I must be missing something very simple here (and apologies if I
I think I got all the steps down but I must be missing something
I think I'm overlooking something simple here, I can't imagine this is impossible to
I think I must be missing something, why can't I compile this: class Foo<T>
I am trying to do the following but I think I must be missing
It seems I'm missing something with Java Generics because something I think is simple,
Ok, I know I must be missing something simple. Thank-you for your help! [EDITED
I have a fairly simple script but something is going wrong and I can't
Ok I think I must be missing something. In settings.py I don't see the
I'm trying to find a way to to do something that I think must

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.