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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T14:28:33+00:00 2026-06-14T14:28:33+00:00

Using storyboards I have a table view controller with a list of rows. When

  • 0

Using storyboards I have a table view controller with a list of rows. When a row is selected, I want to pass the data associated with that row across to another table view controller which is embedded within an UINavigationController.

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

    if ([segue.identifier isEqualToString:@"EditJob"])
    {
        NewJobsTableViewController *newJobsTableViewController = segue.destinationViewController;
        NSIndexPath *indexPath = [self.tableView indexPathForSelectedRow];

        Jobs *job = [self.fetchedResultsController objectAtIndexPath:indexPath];
        newJobsTableViewController.jobDetails = job;

    }
}

On the last line within the prepareForSegue method I am getting the following error:

[UINavigationController setJobDetails:]: unrecognized selector sent to instance 0x83a7780
2012-11-11 08:50:25.335 My Trades[40612:c07] * Terminating app due to uncaught exception ‘NSInvalidArgumentException’, reason: ‘-[UINavigationController setJobDetails:]: unrecognized selector sent to instance 0x83a7780’

jobDetails is declared in the newJobsTableViewController as:

@interface NewJobsTableViewController : UITableViewController <UITextFieldDelegate,      NSFetchedResultsControllerDelegate> {
    Jobs *_jobDetails;
}

@property (strong, nonatomic) Jobs *jobDetails;

I am not sure why it’s causing this error.

  • 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-14T14:28:34+00:00Added an answer on June 14, 2026 at 2:28 pm

    It sounds to me like you set up your storyboard wrong. That second tableViewController shouldn’t be embedded in its own navigation controller. Just set up a push segue from your first tableViewController to the second — the second will automatically be embedded in the same navigation controller as the first one.

    The reason for the error, I think, is because the destination view controller is actually the navigation controller that you embedded the second view controller in. This line doesn’t do what you expect it to do:

     NewJobsTableViewController *newJobsTableViewController = segue.destinationViewController;
    

    Even though you’re setting the return value of destinationViewController to your class, it will return whatever it actually is — I’m betting that if you log the class of newJobsTableViewController, it will actually come back as UINavigationController.

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

Sidebar

Related Questions

I have a Table View Controller which I have designed using storyboards. This has
Using storyboard, I have a table view controller containing multiple dynamic prototype cells. One
I have built my table using Storyboards. I have a Table View embedded in
My app is using Storyboards. I want to post the hierarchy here: view Controller
I am building an app using storyboard. I have added a table view to
I have an iOS 5 Tabbed Application, using Storyboards. My Tabbar Controller points to
I'm using storyboards and I have a UITableView. I have a segue setup that
I have created a new Xcode project using Storyboards (tab view template). I added
I have two view controller FirstVC and SecondVC. i have a table view in
I have encapsulated all my table view logic on a UITableViewController that is linked

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.