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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T03:04:09+00:00 2026-06-07T03:04:09+00:00

I’ve just updated my Xcode from 4.2 to 4.3.3 and i keep coming across

  • 0

I’ve just updated my Xcode from 4.2 to 4.3.3 and i keep coming across a problem
is it possible to add a navigation controller in a single view application because when i try to embed one into the controller nothing happens. I would like to have two view controllers connected by a button to the second controller and a navigation bar back to the first view controller.

I can’t think of any other way to connect the view controllers please help me
any-ideas.

  • 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-07T03:04:11+00:00Added an answer on June 7, 2026 at 3:04 am
    1. If you don’t want to add a navigation controller, you could transition between your existing view controllers using presentViewController to go from the first one to the second one, and dismissViewControllerAnimated to return.

    2. Assuming you’re using a NIB (otherwise you’d just use the embed command for the storyboard), if you want to add a navigation controller staying with your NIB, you can alter your app delegate accordingly.

    So, you probably have an app delegate that says something like:

    //  AppDelegate.h
    
    #import <UIKit/UIKit.h>
    
    @class YourViewController;
    
    @interface AppDelegate : UIResponder <UIApplicationDelegate>
    
    @property (strong, nonatomic) UIWindow *window;
    
    @property (strong, nonatomic) YourViewController *viewController;
    
    @end
    

    Change this to add a navigation controller (you can get rid of the previous reference to your main view controller here):

    //  AppDelegate.h
    
    #import <UIKit/UIKit.h>
    
    //@class YourViewController;
    
    @interface AppDelegate : UIResponder <UIApplicationDelegate>
    
    @property (strong, nonatomic) UIWindow *window;
    
    //@property (strong, nonatomic) YourViewController *viewController;
    @property (strong, nonatomic) UINavigationController *navigationController;
    
    @end
    

    And then, in your app delegate’s implementation file, you have a didFinishLaunchingWithOptions that probably says something like:

    - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
    {
        self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
        // Override point for customization after application launch.
    
        self.viewController = [[YourViewController alloc] initWithNibName:@"YourViewController" bundle:nil];
        self.window.rootViewController = self.viewController;
    
        [self.window makeKeyAndVisible];
        return YES;
    }
    

    You can change that to say:

    - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
    {
        self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
        // Override point for customization after application launch.
    
        //self.viewController = [[YourViewController alloc] initWithNibName:@"YourViewController" bundle:nil];
        //self.window.rootViewController = self.viewController;
    
        YourViewController *viewController = [[YourViewController alloc] initWithNibName:@"YourViewController" bundle:nil];
        self.navigationController = [[UINavigationController alloc] initWithRootViewController:viewController];
        self.window.rootViewController = self.navigationController;
    
        [self.window makeKeyAndVisible];
        return YES;
    }
    

    Having done that, you can now navigate from one NIBs view controller to another’s using pushViewController and return with popViewControllerAnimated. In your viewDidLoad you can also use the self.title = @"My Title"; command to control what appears in the view’s navigation bar. You may also want to change the “Top Bar” property in your NIBs to include the navigation bar simulated metric, so that you can layout your screen and have a good sense of what it’s going to look like:

    enter image description here

    Clearly, if you’ve got a non-ARC project, those lines with the alloc/init of the view controllers should also have an autorelease, too (which will be obvious when you look at your app delegate).

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

Sidebar

Related Questions

I am currently running into a problem where an element is coming back from
I have a text area in my form which accepts all possible characters from
I have a view passing on information from a database: def serve_article(request, id): served_article
I have just tried to save a simple *.rtf file with some websites and
For some reason, after submitting a string like this Jack’s Spindle from a text
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
Does anyone know how can I replace this 2 symbol below from the string
I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out

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.