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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T23:56:47+00:00 2026-05-22T23:56:47+00:00

hii… I am making a view based application in which I have tabbar controller

  • 0

hii…

I am making a view based application in which I have tabbar controller but this application has no of pages. And I am adding these pages as subview due to which stack get increase each. I want to put navigation bar controller too in this application to decrease the memory allocation.

Can it possible to have tabbar and navigation bar controller both in view based application.

If anyone know how to implement it. Then please help me.

Thanks in advance.

  • 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-22T23:56:48+00:00Added an answer on May 22, 2026 at 11:56 pm

    But of course, in AppDelegate.m, include

    - (BOOL)application:(UIApplication *)application 
    didFinishLaunchingWithOptions:(NSDictionary *)launchOptions 
    {   
        ViewController1 *vc1 = [[ViewController1 alloc] init];
        UINavigationController *nc1 = [[UINavigationController alloc] initWithRootViewController:vc1];
        ViewController2 *vc2 = [[ViewController2 alloc] init];
        UINavigationController *nc2 = [[UINavigationController alloc] initWithRootViewController:vc2];
    
        NSArray *navControllers = [NSArray arrayWithObjects:nc1, nc2, nil];
        [nc1 release]; [nc2 release];
    
        tabBarController = [[UITabBarController alloc] init];
        [tabBarController setViewControllers:navControllers];
    
        [window addSubview:[tabBarController view]];
        [window makeKeyAndVisible];
    
        return YES;
    }
    

    This sets up two views for the tabBar controller, each with its own navigation controller. You can modify this as you like to add more view with or without navigation controllers

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

Sidebar

Related Questions

Hii , I am developing an application where I ran across into this problem
Hii , I was asked this question in a recent interview for which i
Hii i have this code : $handle = popen(php -q nah.php -p=. '$part' .
Hii....i am new to iPhone programming..Can anybody help me out please i have an
Hii, We want to redirect our users to one of our web pages corresponding
hii i am using ajax file upload in this code <script type=text/javascript src=fileuploader.js></script> <script
Essentially I have this <p>hello</p> <p>So I wanted just to say hi</p> <p>I hope
Hi i have a problem with recursion. i followed this example from wc3 http://www.w3schools.com/jsref/met_win_settimeout.asp
Hii , I am a novice in C++. I did read about inline functions
Hii , We generally see that the program execution begins in the main method

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.