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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T18:01:36+00:00 2026-06-15T18:01:36+00:00

Noob Xcode question here. I have a basic Master-Detail setup. When I choose an

  • 0

Noob Xcode question here.

I have a basic Master-Detail setup.

When I choose an item in the master list, it brings a second “master” sidebar with the details, instead of updating the details page.

So I start with this:

I click on “Nick Jones” and get this:
enter image description here

The storyboard looks like this:
enter image description here

But if I click on the Master View Controller, the Detail View Controller changes size to this:
enter image description here

I’m trying to adapt the tutorial “Your Second iOS App” tutorial to iPad (rather than iPhone). The key segue page is here. I’ve reestablished a segue link between the navigation controller and the Detail View Controller because it doesn’t work hardly at all without it, but I’m clearly doing it wrongly.

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-15T18:01:38+00:00Added an answer on June 15, 2026 at 6:01 pm

    A couple of observations:

    1. The obvious problem is the type of segue you have from the master view controller to the detail view controller. It should be a "replace" segue, and when you select that segue and click on the attributes inspector, make sure you specify the destination of the "detail split":

      detail split

    2. As an aside, the reason that the storyboard is a little confused on the UI, is that you’ve got two segues into that detail view controller, one from the details view of the split view controller (and thus the squarish shape of the details scene), and another from the master view controller (and thus the, incorrect, narrow shape of the details scene). The poor Interface Builder is probably sitting there thinking "hey, did you want me to use this scene as the details for a split view, or as a replacement for the master view controller?!?" My previous point resolves this conflict, but this explains why, in your current storyboard, the shape of the details scene changes based upon which scene you currently have selected.

    3. If you’re going to do it this way, I’d suggest that you might want the segue from the master scene to the details scene to actually go from the master to the navigation controller scene, not to the details scene itself:

      go to navigation controller

    4. To be quite blunt, though, having described how to fix the segue, you shouldn’t be using a segue! Create a blank new "master-detail" project and see what it does. You’ll notice that it looks more like:

      enter image description here

    You really only want the segue from the master scene to the details scene if you’re changing the details view controller to a different scene. But you’re not doing that. You probably only want to tell the details view controller that the object it’s looking at has changed and that it should reloadData. And given that your details view controller is a tableview, itself, the the master view controller would have a method that does something like (a) tell the detail view controller what detail item it’s looking at; and (b) tell it to reloadData. So it might look something like:

    - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
    {
        NSDate *object = _objects[indexPath.row];
        self.detailViewController.detailItem = object;
    
        [self.detailViewController.tableView reloadData];
    }
    

    You can make it work either way, but I would have thought that this latter approach might make more sense.

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

Sidebar

Related Questions

Noob question here! I have an array with hashes that looks like this: arr
Noob question. I have an activate handler in a child List , but it
noob question here. I have a has_many :through relationship between items and tags. Finding
Noob question alert! I am working on a basic clock that updates every second,
Noob dumb question, no doubt -- but here it is: Trying to tutorialize myself
Noob question, apologies. I'm compiling Java in Windows Vista's command-line and have so many
Noob question for Ruby on Rails- here's an example of my situation: If I
Noob question. I have this situation where I have these objects: class Address {
Noob question here, every time I change a certain record in an SQL Server
noob question regarding ios development. In a previous project, I have a UITableViewController, to

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.