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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T14:55:26+00:00 2026-05-27T14:55:26+00:00

I have a basic navigation stack: NavController->UITableViewController (as rootViewController in the NavController) -> menu

  • 0

I have a basic navigation stack: NavController->UITableViewController (as rootViewController in the NavController) -> menu items with the main option being a custom viewController. I want my app to launch with the main custom view controller as the current view on the navigationController’s stack, and the back button to go to the Main Menu. Is there some way using storyboarding to setup the stack this way and yet on launch show the custom view first?

I’m trying to do this in storyboarding as much as possible. I know I could go in the appDelegate and on appDidFinishLaunching… push the custom viewController into the navController but that just seems bad because then in my appDelegate I have to reference the navController and the custom viewController.

  • 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-27T14:55:26+00:00Added an answer on May 27, 2026 at 2:55 pm

    Unfortunately UIStoryboard isn’t able to manipulate a UINavigationController hierarchy in a visual way. In your case, you need to establish the hierarchy programmatically in your application delegate. Luckily, because you are storyboarding, your app delegate already contains a reference to this navigation controller.

    When storyboarding, the so called “Initial View Controller” will be wired up to the rootViewController property on the application’s instance of UIWindow by the time -applicationDidFinishLaunchingWithOptions: is messaged.

    - (BOOL)application:(UIApplication *)app didFinishLaunchingWithOptions:(NSDictionary *)options
    {
        UINavigationController *navController = (UINavigationController *)self.window.rootViewController;
        MenuViewController *menu = [navController.storyboard instantiateViewControllerWithIdentifier:@"MenuController"];
        CustomViewController *custom = [navController.storyboard instantiateViewControllerWithIdentifier:@"CustomController"];
    
        // First item in array is bottom of stack, last item is top.
        navController.viewControllers = [NSArray arrayWithObjects:menu, custom, nil];
    
        [self.window makeKeyAndVisible];
    
        return YES;
    }
    

    I realize this isn’t ideal, but if you want to stay in the land of storyboards, I’m afraid this is the only way.

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

Sidebar

Related Questions

I have an ASP.NET website, on the masterpage I have a basic navigation menu:
I want to have 2 navigation menus- One will be a Top Level menu,
Currently, i have basic C++ and PHP skills. But, i want to switch to
I have a CMS generating a basic navigation using a UL. Each first-level LI
We currently have a custom inventory system used to track different assets. The items
In my app I have a basic Navigation Controller. For all of my views,
I have setup some tabbed navigation on my ASP.NET Masterpage. It is pretty basic:
I want to build a basic anchor based navigation system using jQuery. I don't
Something basic that i don't understand: I have header.php with navigation bar for my
I have some basic user navigation that only needs to be displayed if a

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.