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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T13:57:44+00:00 2026-06-14T13:57:44+00:00

i have selected tab bar based application from templates. in that i need to

  • 0

i have selected tab bar based application from templates. in that i need to set the custom image i have tried like given below

 UIViewController *viewController1 = [[[FirstViewController alloc] initWithNibName:@"FirstViewController" bundle:nil] autorelease];
UINavigationController *view1=[[UINavigationController alloc]initWithRootViewController:viewController1];

UIViewController *viewController2 = [[[SecondViewController alloc] initWithNibName:@"SecondViewController" bundle:nil] autorelease];
UINavigationController *view2=[[UINavigationController alloc]initWithRootViewController:viewController2];

UIViewController *viewController3 = [[[SecondViewController alloc] initWithNibName:@"ThirdViewController" bundle:nil] autorelease];
UINavigationController *view3=[[UINavigationController alloc]initWithRootViewController:viewController3];

UIViewController *viewController4 = [[[SecondViewController alloc] initWithNibName:@"MainViewController" bundle:nil] autorelease];
UINavigationController *view4=[[UINavigationController alloc]initWithRootViewController:viewController4];


self.tabBarController = [[[UITabBarController alloc] init] autorelease];
self.tabBarController.delegate=self;


self.tabBarController.viewControllers = [NSArray arrayWithObjects:view1,view2,view3,view4, nil];

[self.tabBarController.tabBarItem setImage:[UIImage imageNamed:@"h.png"]];

one more way i have tried

    [[_tabBarController tabBar] setBackgroundImage:[UIImage imageNamed:@"h.png"]];

in the second way there is image applied but it’s a background.

so i need individually like home button something like that….

how to set this…
thanks….

  • 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-14T13:57:45+00:00Added an answer on June 14, 2026 at 1:57 pm

    You an set the images in UIViewControllers's TabBarItems like..

    viewcontroller1.tabBarItems.image = [UIImage imageNamed:@"your image1"];
    
    viewController2.tabBarItems.image = [UIImage imageNamed:@"your image2"];
    
    viewController3.tabBarItems.image = [UIImage imageNamed:@"your image3"];
    
    viewController3.tabBarItems.image = [UIImage imageNamed:@"your image3"];
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a tab bar controller (its a tab bar based application, so tab
I've created a tab bar application. I have four tabs; on the selected tab,
I have found a tab bar library that I would like to use, but
I like to have a custom selected image when a user selects an item
I have a tabbar application that has one screen that displays statistics based on
I have a tab bar controller with five buttons. That controller has a tab
I have a tab bar in may app that controls 5 different views. To
I have developed an iPhone application with tab bar and navigation controllers. It is
I have a three tab application that shares a plist for connection information (Client
I have a Tab bar application with two tabs named Tab1 and Tab2. Whenever

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.