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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T13:11:31+00:00 2026-06-07T13:11:31+00:00

I have UITabBarController with UITabBar which has three UITabBarItem . Project is with storyboard.

  • 0

I have UITabBarController with UITabBar which has three UITabBarItem.
Project is with storyboard. How can I set different image to each UITabBarItem?

I want do something like this:

TabBarItem1 -> image1_unselected and image1_selected

TabBarItem1 -> image2_unselected and image2_selected

TabBarItem1 -> image3_unselected and image3_selected

EDIT:

Probably I didn’t write precisely, but I want set custom image and make UITabbar with custom graphics. Something like UITabbar in “Find My Friends” app.

  • 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-07T13:11:32+00:00Added an answer on June 7, 2026 at 1:11 pm

    OK, I found solution.

    At the beginning of viewDidLoad in my firsTabBarViewController.m I added this code:

    UIImage *selectedImage0 = [UIImage imageNamed:@"barBtn1_selected.png"];
    UIImage *unselectedImage0 = [UIImage imageNamed:@"barBtn1.png"];
    
    UIImage *selectedImage1 = [UIImage imageNamed:@"barBtn2_selected.png"];
    UIImage *unselectedImage1 = [UIImage imageNamed:@"barBtn2.png"];
    
    UIImage *selectedImage2 = [UIImage imageNamed:@"barBtn3_selected.png"];
    UIImage *unselectedImage2 = [UIImage imageNamed:@"barBtn3.png"];
    
    UITabBar *tabBar = self.tabBarController.tabBar;
    
    UITabBarItem *item0 = [tabBar.items objectAtIndex:0];
    UITabBarItem *item1 = [tabBar.items objectAtIndex:1];
    UITabBarItem *item2 = [tabBar.items objectAtIndex:2];
    
    [item0 setFinishedSelectedImage:selectedImage0 withFinishedUnselectedImage:unselectedImage0];
    [item1 setFinishedSelectedImage:selectedImage1 withFinishedUnselectedImage:unselectedImage1];
    [item2 setFinishedSelectedImage:selectedImage2 withFinishedUnselectedImage:unselectedImage2]; 
    

    And now I have exactly what I want in my question.

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

Sidebar

Related Questions

I have a UITabBarController set up in storyboard. I want to pass a dictionary
i have a uitabbarcontroller which has 3 items. each item has its own navigation
I have a UITabBarController with three tabs: each is a navigation controller with a
I have a root UIViewController subclass that has a UITabBar, (I'm not using UITabBarController)
So I have a UIViewController that has a UITabBar in the view. I want
I have a UITabBarController with two different views to switch between. What I would
I have a custom UIViewController in a UITabbarController and want to respond to rotation
i have a problem is i got UItabbarController it contain 3 Tabbars each tabbar
I have an existing iPhone project that has been tested, submitted, and approved, compiled
Has anyone successfully hidden a UITabbar when rotating the device? I have one view

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.