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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T17:15:16+00:00 2026-05-28T17:15:16+00:00

I am doing an application which is of SingleView BASED Application,where i have many

  • 0

I am doing an application which is of SingleView BASED Application,where i have many UIviewcontrollerclass subclasses for moving from one view to another view.i have a tab bar in one of the view and want to communicate with others view when click on a tab.so plz tell me how can i do it i am stuck here.
i have classes called

LoginPage.h/.m/.xib

Myservices.h/.m/.xib

History.h/.m/.xib

Profile.h/.m/.xib

MyRecentRequest.h/.m/.xib

when i enter from login page it moves to Myservices view.
There i have added Tab bar at the bottom and added two more tab Items and totally have 4 tab bar items naming Myservices,history,MyrecentRequest and profile.

Now i want to connect the tab bar with other class so that when i click on tab item respective view should appear of that particular classs so how can i do this? please provide me sample code.

  • 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-28T17:15:16+00:00Added an answer on May 28, 2026 at 5:15 pm

    first of all how u r maintaining the tabBar, either from IB or code. The below if by code. You need to alloc a tabBar with all the viewControllers required into each tabItem, the below one is sample with 2 tabItems:

    UITabBarController* tabBarController = [[UITabBarController alloc] init];
    NSMutableArray *localViewControllersArray = [[NSMutableArray alloc] initWithCapacity:8];
    
    ViewController1* vC1 = [[ViewController1 alloc] init];
    UINavigationController* navController1 = [[UINavigationController alloc] initWithRootViewController:vC1];
    [vC1 release];      
    navController1.tabBarItem.image = [UIImage imageNamed:@"navController1_image.png"];
    [localViewControllersArray addObject:navController1];
    [navController1 release]; 
    
    ViewController2* vC2 = [[ViewController2 alloc] init];
    UINavigationController* navController2 = [[UINavigationController alloc] initWithRootViewController:vC2];
    navController2.tabBarItem.image = [UIImage imageNamed:@"navController2_image.png"];
    [vC2 release];      
    [localViewControllersArray addObject:navController2];
    [navController2 release]; 
    
    tabBarController.viewControllers = localViewControllersArray;
        self.window.rootViewController = tabbarController;
    [localViewControllersArray release];
        [tabBarController release];
    

    In this way u can maintain the tabBar by code, so that if tab is selected respective view will be shown, in this example a navigation controller is used in each tab to provide navigation, if only 1 view is required u can avoid the navigation controller..

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

Sidebar

Related Questions

Ha ii ,i am doing a reader application which have chapters in it,i have
I have an application which pulls XAML page paths from a database. I can
I have a java application which doing some logic... ... But the java application
I have working on an application which captures screen shots and create video from
I have seen many application doing voice recognition on the iphone. I have already
We are currently doing an web application which one of the functionality is to
Ha ii everybody i am doing a reader application which has so many functionality
I am doing a application which have a sharing note option to Ever-Note,i have
I am doing an application in which I want to call a number when
I am doing an application in which I didnt changed anything and still it

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.