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

  • Home
  • SEARCH
  • 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 4038344
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T12:27:40+00:00 2026-05-20T12:27:40+00:00

I’m porting a fairly simple iPhone Navigation based app to a Split View iPad

  • 0

I’m porting a fairly simple iPhone Navigation based app to a Split View iPad app. I have two nested levels of navigation on the Master view. The user picks a value from the first table and it loads the 2nd table. Selecting a value on the second table loads the Detail item for the detail view. I’ve (finally) gotten that part working.
When I try to pull up the Master view again, though, whether using the popover menu button in portrait or just navigating back to it and clicking on a record in landscape view, it crashes with a GDB: Program received signal: “EXC_BAD_ACCESS” error. I can’t find anyplace in the code to step into to identify the problem.

I’m following the SplitView template fairly closely. I’m only really getting off the beaten track by adding that 2nd TableViewController. My RootViewController loads the 2nd TableViewController.

Here’s the code:

First, in RootViewController.m I’m loading the 2nd TableView when an item is selected on the 1st (in didSelectRowAtIndexPath):

RequestsTableViewController *requestsTableViewController=[[RequestsTableViewController alloc] initWithNibName:@"RequestsTableViewController" bundle:nil];

requestsTableViewController.selectedDepartmentID = self.selectedDepartmentID;

[self.navigationController pushViewController:requestsTableViewController animated:YES];

[requestsTableViewController release];

Then, in the 2nd TableViewController, RequestsTableViewController, I load the detail item based on its selection in didSelectRowAtIndexPath:

TrackerSplitViewAppDelegate *appDelegate = (TrackerSplitViewAppDelegate *)[[UIApplication sharedApplication] delegate];

Request *aRequest = [appDelegate.requests objectAtIndex:indexPath.row];
appDelegate.detailViewController.thisRequest = aRequest;
appDelegate.detailViewController.detailItem = [NSString stringWithFormat:@"Row %d", indexPath.row];

[appDelegate release];

The app loads and sets my values and everything is working fine. I can navigate between the two TableViewControllers just fine with the auto-generated navigation as long as I don’t click on a detail. Once I click on a detail and it’s loaded, though, I crash the app if I try to re-access the MasterView.
I did nothing to the nib files to wire this navigation up, it all worked ported from the iPhone app (other than this crash). I can’t find any examples with multiple master views to see where my wire up is different. I suspect I have to tweak something in the interface builder or something, but as I can’t tell exactly where it’s crashing, I’m having a hard time getting started. Or do I just need to push the original view back on to the stack programmatically after a detail has been selected? That seems ham-fisted.

  • 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-05-20T12:27:41+00:00Added an answer on May 20, 2026 at 12:27 pm

    [appDelegate release];

    You should not release the appDelegate unless you’ve retained it. And you haven’t done this. So get rid of this line.

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

Sidebar

Related Questions

No related questions found

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.