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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T20:25:37+00:00 2026-05-23T20:25:37+00:00

I want to do this simple thing: create a uinavigationcontroller but that doesnt show

  • 0

I want to do this simple thing: create a uinavigationcontroller but that doesnt show up on launch. Let’s say I want to have a welcome screen with a “Go” button that leads to the uinavigationcontroller. In all the examples that I have seen it looks like the navigationcontroller appears right away. How should I go about doing that?

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-05-23T20:25:39+00:00Added an answer on May 23, 2026 at 8:25 pm

    The mecanic of displaying the navigation controller’s view takes place in the -(BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions; method, in the app delegate. There the NC is added as the rootViewController of the window.
    If you want to display another one, just set your custom view controller right in place of the NC and then switch the two view controllers (replace the first custom view controller with the NC) in the action method called when the button is pressed.
    Assuming myCustomController defines a UIButton property called touchButton :

    // in the app delegate
    -(BOOL)application:(UIApplication *)application
        didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
        //self.window.rootViewController = self.navigationController;
        [self.myCustomController.touchButton addTarget:self
                                                action:@selector(switchVC)
                                      forControlEvents:UIControlEventTouchUpInside];
        self.window.rootViewController = self.myCustomController;
        [self.window makeKeyAndVisible];
        return YES;
    }
    

    Now write in your app delegate an action method :

    -(void)switchVC {
        self.window.rootViewController = self.navigationController;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Let's say I want to draw a simple quad like this: glBegin(GL_QUADS); glVertex2f(-1.0,-1.0); glVertex2f(1.0,-1.0);
I have a class that contains an array. I want this array to be
I want to do this so that I can say something like, svn mv
This one very simple thing I can't find the right technique. What I want
I'm getting frustrated at this. I want to create an iPhone application to show
i want to do this simple piece of code work. #include <iostream> #include <windows.h>
Here's a simple (hopefully) L10N question: Do all locales want this format: Sunday, Nov
This is a simple one. I want to replace a sub-string with another sub-string
This is an incredibly simple question (I'm new to Python). I basically want a
I have this div: <div class=inauguration-image> I do not want this text to display,

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.