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 using devexpress xtrascheduler.In this i have created one custom form which
Hii, I have a parser which has many rules and no problem with it
hii every one i have created a data entry screen like this in which
Hii, there are many others had already post so many question about this..But here
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 Friends, the application is that using a imageviewer of a which had placed
Hii... I have a function something like this... class Zend_View_Helper_RenderUOList extends Zend_View_Helper_Abstract { public
Hii i am working on an application in which i require to select files
Hii everyone! I have some text fields in each cell of the table view,

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.