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

The Archive Base Latest Questions

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

Hi friend I want to Develop an application for windows base First page of

  • 0

Hi friend I want to Develop an application for windows base First page of the loading page then after the next view i want to add UitabbarController. i have implement this code.

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {    


    flag=1;


    splash *objSplash=[[splash alloc]initWithNibName:@"splash" bundle:nil];

    Home *placeholder1 = [[Home alloc] initWithNibName:@"Home" bundle:nil];
    placeholder1.title=@"Home";
    placeholder1.tabBarItem.image=[UIImage imageNamed:@"home1.png"];

    shopHome *placeholder2 = [[shopHome alloc] initWithNibName:@"shopHome" bundle:nil];
    placeholder2.title=@"Store";
    placeholder2.tabBarItem.image=[UIImage imageNamed:@"Shop.png"];

    Search1 *placeholder3 = [[Search1 alloc] initWithNibName:@"Search1" bundle:nil];
    placeholder3.title=@"Search";
    placeholder3.tabBarItem.image=[UIImage imageNamed:@"search2.png"];

    info *placeholder4 = [[info alloc]initWithNibName:@"info" bundle:nil];
    placeholder4.title=@"Info";
    placeholder4.tabBarItem.image=[UIImage imageNamed:@"info1.png"];

    CartView *placeholder5=[[CartView alloc]initWithNibName:@"CartView" bundle:nil];
    placeholder5.title=@"Cart";
    placeholder5.tabBarItem.image=[UIImage imageNamed:@"Cart.png"];

    NSMutableArray *localViewControllersArray = [[NSMutableArray alloc] init];

    UINavigationController *localNavController;


    localNavController = [[UINavigationController alloc] initWithRootViewController:placeholder1];
    localNavController.navigationBar.tintColor=[UIColor blackColor];

    // Add navigation controller to the local vc array (1 of 2)
    [localViewControllersArray addObject:localNavController];
    [localNavController release];

    localNavController = [[UINavigationController alloc] initWithRootViewController:placeholder2];
    [localViewControllersArray addObject:localNavController];
    [localNavController release];

    localNavController = [[UINavigationController alloc] initWithRootViewController:placeholder3];
    [localViewControllersArray addObject:localNavController];
    [localNavController release];

    if(flag==1)
    {
        localNavController = [[UINavigationController alloc] initWithRootViewController:placeholder5];
        [localViewControllersArray addObject:localNavController];
        [localNavController release];


    }

    localNavController = [[UINavigationController alloc] initWithRootViewController:placeholder4];
    [localViewControllersArray addObject:localNavController];
    [localNavController release];

    tabBarController = [[UITabBarController alloc] init]; 
    //tabBarController.viewControllers = [NSArray arrayWithObjects:placeholder1, placeholder2, placeholder3, placeholder4, nil]; 
    tabBarController.viewControllers = localViewControllersArray;
    //tabBarController.tintColor=[UIColor colorWithRed:160/256.0 green:82/256.0 blue:45/256.0 alpha:1.0];
    //tabBarController.tabBar.backgroundColor=[UIColor colorWithRed:160/256.0 green:82/256.0 blue:45/256.0 alpha:1.0];



    tabBarController.delegate=self;

    [placeholder1 release];
    [placeholder2 release];
    [placeholder3 release];
    [placeholder4 release];

    [self.window addSubview:objSplash.view];

    //[self.window addSubview:navigationController.view];


    //[self.window addSubview:tabBarController.view];

    [NSTimer scheduledTimerWithTimeInterval:5.0 target:self selector:@selector(goToNext) userInfo:nil repeats:NO];


    flag=1;

    [self parsingData];

    [window makeKeyAndVisible];

    return YES;
}


-(void)goToNext
{
    //[self.navigationController.view addSubview:tabBarController.view];


    [self.window addSubview:tabBarController.view];
}
  • 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:28:04+00:00Added an answer on June 7, 2026 at 3:28 am

    Simply try to implement this one :

    - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {   
        splash *objSplash=[[splash alloc]initWithNibName:@"splash" bundle:nil];
        Home *placeholder1 = [[Home alloc] initWithNibName:@"Home" bundle:nil];
        placeholder1.title=@"Home";
        placeholder1.tabBarItem.image=[UIImage imageNamed:@"home1.png"];
    
        shopHome *placeholder2 = [[shopHome alloc] initWithNibName:@"shopHome" bundle:nil];
        placeholder2.title=@"Store";
        placeholder2.tabBarItem.image=[UIImage imageNamed:@"Shop.png"];
    
        Search1 *placeholder3 = [[Search1 alloc] initWithNibName:@"Search1" bundle:nil];
        placeholder3.title=@"Search";
        placeholder3.tabBarItem.image=[UIImage imageNamed:@"search2.png"];
    
        info *placeholder4 = [[info alloc]initWithNibName:@"info" bundle:nil];
        placeholder4.title=@"Info";
        placeholder4.tabBarItem.image=[UIImage imageNamed:@"info1.png"];
    
        CartView *placeholder5=[[CartView alloc]initWithNibName:@"CartView" bundle:nil];
        placeholder5.title=@"Cart";
        placeholder5.tabBarItem.image=[UIImage imageNamed:@"Cart.png"];
    
        NSMutableArray *localViewControllersArray = [[NSMutableArray alloc] init];
        UINavigationController *localNavController;
        localNavController = [[UINavigationController alloc] initWithRootViewController:placeholder1];
        localNavController.navigationBar.tintColor=[UIColor blackColor];
    
        // Add navigation controller to the local vc array (1 of 2)
        [localViewControllersArray addObject:localNavController];
        [localNavController release];
        localNavController = [[UINavigationController alloc] initWithRootViewController:placeholder2];
        [localViewControllersArray addObject:localNavController];
        [localNavController release];
    
        localNavController = [[UINavigationController alloc] initWithRootViewController:placeholder3];
        [localViewControllersArray addObject:localNavController];
        [localNavController release];
    
        if(flag==1)
        {
            localNavController = [[UINavigationController alloc] initWithRootViewController:placeholder5];
            [localViewControllersArray addObject:localNavController];
            [localNavController release];
        }
        localNavController = [[UINavigationController alloc] initWithRootViewController:placeholder4];
        [localViewControllersArray addObject:localNavController];
        [localNavController release];
    
        tabBarController = [[UITabBarController alloc] init]; 
        tabBarController.viewControllers = localViewControllersArray;
        tabBarController.delegate=self;
        [placeholder1 release];
        [placeholder2 release];
        [placeholder3 release];
        [placeholder4 release];
    
        [self.window addSubview:objSplash.view];
        [NSTimer scheduledTimerWithTimeInterval:5.0 target:self selector:@selector(goToNext) userInfo:nil repeats:NO];
        [window makeKeyAndVisible];
        return YES;
    }
    
    -(void)goToNext
    {
        [self.window addSubview:tabBarController.view];
    }
    
    @implementation Home
    - (id)initWithTitle:(NSString*)theTitle {
        if (self = [super init]) {
            self.tabBarItem.image = [UIImage imageNamed:@"Home.png"];
            self.title = theTitle;
        }
        return self;
    }
    

    Note :
    This is already tested solution hope it will work for you as well.

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

Sidebar

Related Questions

I need to write a forum application for a friend's web site. I want
My friend and I want to write a Facebook application. We've narrowed down the
Friends,I want to work on a OpenGL application, in which i have to develop
I have used Facebook invite friend application,I want to customize the Facebook buttons and
I want to develop native mobile application in which user will send invitation to
My friend and I want to develop a big web2.0 project. We decided to
Hi I am working on an iframe based facebook application, I want to develop
I want to develop a simple java based application that can connect to facebook
I want to develop a java application to capture video from a usb web
i want to develop some php stuff with a friend together. We managed to

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.