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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T06:58:53+00:00 2026-06-12T06:58:53+00:00

Update – I think I figured it out but please read my question if

  • 0

Update – I think I figured it out but please read my question if you’d like and check that my solution (in answers) is correct, thank you.

I’m new to the splitViewController and I’m having a hard time understanding how I should pop the detail view controller when the master is popped.

This may be hard for me to explain but I will try my best, here is a screenshot to understand my storyboard:
enter image description here

The MasterView is a NavigationController that has RootViewController of a TableView, when a user selects a cell the masterView pushes the next tableview and the detail is changed programmatically like so:

In the initial root:

  detailViewController = (CCGViewController *)[[self.splitViewController.viewControllers lastObject] topViewController];

When a cell is clicked in root

 [detailViewController performSegueWithIdentifier:@"replaceSearchWithSponsor" sender:self];

This is working to drill down but when I pop the Master View navigation controller I’d like to set up a good way to pop the detail views in their navigation stacks.

Any suggestions would be greatly appreciated.

thank you.

  • 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-12T06:58:54+00:00Added an answer on June 12, 2026 at 6:58 am

    I just subclassed UINavigationController and when I popped MasterNavigationController I popped the Detail as well. This seems to work for me, if you see any potential issues let me know:

    in .h :

    @interface CCGPopMasterNavigationController : UINavigationController
    
    @end
    

    in .m

    @interface CCGPopMasterNavigationController ()
    
    @end
    
    @implementation CCGPopMasterNavigationController
    
    - (UIViewController *)popViewControllerAnimated:(BOOL)animated {
        [[[[self.splitViewController.viewControllers lastObject] topViewController]navigationController
          ] popViewControllerAnimated:animated];
        return [super popViewControllerAnimated:animated];
    }
    @end
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Update: Check out this follow-up question: Gem Update on Windows - is it broken?
* UPDATE: *I've already answered my question. But you can still give me advise
UPDATE: Thanks for the answers! I can't seem to figure it out, even with
Update 3 recently, I noticed that my code randomly causes Segmentation Fault errors. But
UPDATE: Focus your answers on hardware solutions please. What hardware/tools/add-in are you using to
Update: I asked the question because the result does not look like how it
UPDATE It turns out that I was calling a class method on an instance
UPDATE: I've been playing around with this more, and it seems like tmux's clear-history
UPDATE UPI_ATTRIBUTE SET SITE_INC ='0' WHERE USER_PROFILING_NAME IN ('CAR_IMPLICIT','CAR_EXPLICIT') Above is my query that
UPDATE 6/21/12 I have a form in rails that is working similar to an

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.