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

  • Home
  • SEARCH
  • 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 6944669
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T13:20:12+00:00 2026-05-27T13:20:12+00:00

At first I want to say that i am new in iPhone application development.I

  • 0

At first I want to say that i am new in iPhone application development.I want to make a tabbaritem when i will select a item of the tabbar then it should be look like that

enter image description here

Many 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-27T13:20:12+00:00Added an answer on May 27, 2026 at 1:20 pm

    For this you need to create custom tab bar by Sub classing UITabBarController.

    TabBarController.h file :

    @interface TabBarController : UITabBarController<UITabBarControllerDelegate>
    {
        UITabBarController *tabController;
    
        UIImageView *img1;
        UIImageView *img2;
        UIImageView *img3;
        UIImageView *img4;
    }
    

    .m file

    - (void)viewDidLoad 
    {       
        [self loadTabView];
        //[self viewWillAppear:YES];
        [super viewDidLoad];        
    }
    
    - (void) loadTabView 
    {
        tabController = [[UITabBarController alloc] init];
        tabController.delegate = self;
        tabController.tabBar.backgroundColor = [UIColor clearColor];
    
        //set offset for tabbar items images. 
        int topOffset = 6;
        int bottomOffset = 6;
        UIEdgeInsets imageInset = UIEdgeInsetsMake(topOffset, 0, -bottomOffset, 0);
    
        [self.view addSubview:tabController.view];
    }
    
    // reset the background image in custom tabbar.
    - (void) setTabBarBackground {
    
        UIImageView *img = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"btnbg.png"]];
        img.frame = CGRectOffset(img.frame, 0, 1);
        img.frame = CGRectMake(img.frame.origin.x, img.frame.origin.y-1, img.frame.size.width, img.frame.size.height);
        [tabController.tabBar insertSubview:img atIndex:0];
        [img release];
    
    }
    
    // reset the background image in custom tabbar.
    - (void) resetTabBar : (NSString *) tabid
    {   
        [img1 removeFromSuperview];
    
        NSLog(@"tab id - %@",tabid);
        switch ([tabid intValue]) {
            case 0:
                img1 = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"tab-1.jpg"]];
                break;
            case 1:
                img1 = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"tab-2.jpg"]];
                break;
            case 2:
                img1 = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"tab-3.jpg"]];
                break;
            case 3:
                img1 = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"tab-4.jpg"]];
                break;
            case 4:
                img1 = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"tab-5.jpg"]];
                break;
            default:
                break;
        }
    
        img1.frame = CGRectOffset(img1.frame, 0, 1);
        [tabController.tabBar insertSubview:img1 atIndex:0];
        [tabController.tabBar bringSubviewToFront:img1];
        [img1 release];
    
    }
    
    // here push View controllers
    - (void)tabBarController:(UITabBarController *)tabBarController didSelectViewController:(UIViewController *)viewController {
    }
    

    Hope it gives you idea..

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

Sidebar

Related Questions

I would first want to say that I am very new to javascript and
First I want to say that I'm really new to neural networks and I
First of all I want to say that I'm completely new to maven. So
First thing i want to say that it's not an easy question to explain,
First off I want to say that I am not using threads or multiple
First of all i want to say that i have searched each and every
First of all i want to say that I'm still a beginner in ASP.NET
First, I just want to say that the stackoverflow community is empowering to say
Let’s say that my string is: test! I want to get the first character
Say I want to take the first item of the lists '(4 3 1)

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.