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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T20:01:42+00:00 2026-06-18T20:01:42+00:00

In my tab based application delegate i added the navigation controller as like the

  • 0

In my tab based application delegate i added the navigation controller as like the following,

 self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
 UIViewController *viewController1 = [[FirstViewController alloc] initWithNibName:@"FirstViewController" bundle:nil];
 UIViewController *viewController2 = [[SecondViewController alloc] initWithNibName:@"SecondViewController" bundle:nil];

 UIViewController *viewController3 = [[view1 alloc] initWithNibName:@"view1" bundle:nil];
 UIViewController *viewController4 = [[view2 alloc] initWithNibName:@"view2" bundle:nil];
 UIViewController *viewController5 = [[view3 alloc] initWithNibName:@"view3" bundle:nil];
 self.tabBarController = [[UITabBarController alloc] init];
 self.tabBarController.viewControllers = @[viewController1, viewController2,viewController3,viewController4,viewController5];
 navigationController=[[UINavigationController alloc]initWithRootViewController:self.tabBarController];
 [self.window addSubview:[navigationController view]];
self.window.rootViewController = self.navigationController;

i would not be able to added the title in each view. While adding it doesn showing the title?Pls help me to resolve this issue

  • 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-18T20:01:43+00:00Added an answer on June 18, 2026 at 8:01 pm

    use bellow code…

    Here i add UINavigationController to every tab and also assign title for tab and also for UINavigationBar like bellow…

    - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
    {
        self.window = [[[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]] autorelease];
        UIViewController *viewController1, *viewController2, *viewController3, *viewController4, *viewController5;
        UINavigationController *navviewController1 , *navviewController2, *navviewController3, *navviewController4, *navviewController5;
        self.tabBarController = [[[UITabBarController alloc] init] autorelease];
        if ([[UIDevice currentDevice] userInterfaceIdiom] == UIUserInterfaceIdiomPhone) {
            viewController1 = [[[YourViewController1 alloc] initWithNibName:@"YourViewController1" bundle:nil] autorelease];
            navviewController1=[[UINavigationController alloc]initWithRootViewController:viewController1];
            navviewController1.title = @"Home";
            //        navviewController1.navigationBarHidden=YES;
    
            viewController2 = [[[YourViewController2 alloc] initWithNibName:@"YourViewController2" bundle:nil] autorelease];
            navviewController2=[[UINavigationController alloc]initWithRootViewController:viewController2];
            //        navviewController2.navigationBarHidden=YES;
            navviewController2.title = @"HowItsWork";
    
            viewController3 = [[[YourViewController3 alloc] initWithNibName:@"YourViewController3" bundle:nil] autorelease];
            navviewController3=[[UINavigationController alloc]initWithRootViewController:viewController3];
            //        navviewController3.navigationBarHidden=YES;
            navviewController3.title = @"Join Us";
    
    
            viewController4 = [[[YourViewController4 alloc] initWithNibName:@"YourViewController4" bundle:nil] autorelease];
            navviewController4=[[UINavigationController alloc]initWithRootViewController:viewController4];
            //        navviewController4.navigationBarHidden=YES;    
            navviewController4.title = @"Become";  
    
            viewController5 = [[[YourViewController5 alloc] initWithNibName:@"YourViewController5" bundle:nil] autorelease];
            navviewController5=[[UINavigationController alloc]initWithRootViewController:viewController5];
            //        navviewController4.navigationBarHidden=YES;    
            navviewController5.title = @"Contact Us"; 
            self.tabBarController.viewControllers = [NSArray arrayWithObjects:navviewController1, navviewController2,navviewController3,navviewController4,navviewController5, nil];
            self.window.rootViewController = self.tabBarController;
        }
    
        [self.window makeKeyAndVisible];
    }
    

    2)OR

    Also you can simple assign title in your particular class like bellow…

    -(void)viewWillAppear:(BOOL)animated{
        self.title = @"yourTitle";
    }
    

    i hope this helpful to you…

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

Sidebar

Related Questions

I had a Navigation Controller based application and decided to use tab bars. And
I have a tab based application with a navigation controller in it. When i
I had a navigation controller based application. And I decided to use tab bars
I have tab based application which also have Navigation controllers, When the user in
I have a tab-based application with a number of navigation controllers in the tabs.
This is a view based application. in delegate.m file I have done like this
I have following problem. I have created a tab based Application with three Views
How to add UINavigationController to xCode Tab Bar Application Delegate? My structure is based
I'm programmatically creating a tab bar based app. In the application:didFinishLaunchingWithOptions (app delegate) method
I have developed an iPhone application based on Tab bar & Navigation bar and

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.