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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 19, 20262026-06-19T03:22:03+00:00 2026-06-19T03:22:03+00:00

i want to make a custom tabbar for my apps, and i already try

  • 0

i want to make a custom tabbar for my apps, and i already try to put my code in the first viewcontroller and it works!.
but here’s the problem, i want to declare and put my code in Appdelegate.m, but when i run it, it only shows me a black tabbar controller with no image.
for your info, i embeding my tabbar controller from storyboard.

here’s the code

    UIImage *selectedImage0   = [UIImage imageNamed:@"img1.png"];
    UIImage *unselectedImage0 = [UIImage imageNamed:@"img1hov.png"];

    UIImage *selectedImage1   = [UIImage imageNamed:@"img2.png"];
    UIImage *unselectedImage1 = [UIImage imageNamed:@"img2hov.png"];

    UIImage *selectedImage2   = [UIImage imageNamed:@"img3.png"];
    UIImage *unselectedImage2 = [UIImage imageNamed:@"img3hov.png"];

    UIImage *selectedImage3   = [UIImage imageNamed:@"img4.png"];
    UIImage *unselectedImage3 = [UIImage imageNamed:@"img4hov.png"];

    UIImage *selectedImage4   = [UIImage imageNamed:@"img5.png"];
    UIImage *unselectedImage4 = [UIImage imageNamed:@"img5hov.png"];



    UITabBar *tabBar = self.tabBarController.tabBar;
    UITabBarItem *item0 = [tabBar.items objectAtIndex:0];
    UITabBarItem *item1 = [tabBar.items objectAtIndex:1];
    UITabBarItem *item2 = [tabBar.items objectAtIndex:2];
    UITabBarItem *item3 = [tabBar.items objectAtIndex:3];
    UITabBarItem *item4 = [tabBar.items objectAtIndex:4];

    tabBar.backgroundImage = [UIImage imageNamed:@"back_menu.png"];


    [item0 setFinishedSelectedImage:selectedImage0 withFinishedUnselectedImage:unselectedImage0];
    [item1 setFinishedSelectedImage:selectedImage1 withFinishedUnselectedImage:unselectedImage1];
    [item2 setFinishedSelectedImage:selectedImage2 withFinishedUnselectedImage:unselectedImage2];
    [item3 setFinishedSelectedImage:selectedImage3 withFinishedUnselectedImage:unselectedImage3];
    [item4 setFinishedSelectedImage:selectedImage4 withFinishedUnselectedImage:unselectedImage4];
  • 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-19T03:22:05+00:00Added an answer on June 19, 2026 at 3:22 am

    Go through following link,
    1) http://idevrecipes.com/2011/01/04/how-does-the-twitter-iphone-app-implement-a-custom-tab-bar/

    2)http://www.simplecode.me/2011/12/05/tab-based-ios-apps-uitabbarcontroller/

    3)http://sugartin.info/2011/07/01/customizing-tab-bar/

    4)http://code4app.net/ios/TabBar-with-Expands/5004e0206803fa546a000001

    5)http://www.guerrillawebsitedesign.co.uk/wordpress/index.php/2010/09/30/how-to-create-a-custom-uitabbarcontroller-for-the-iphone-with-different-background-images-and-icons-part-1-2/

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

Sidebar

Related Questions

I want to make a custom 404 page for my site but I want
I have a problem when I want to make custom listview in android. MyListView
I want to make a custom listview with 1000+ songs. But in my application,
I want to make a custom AuthorizeAttribute class as described here: Override Authorize Attribute
I want to make a custom Form but I don't know which class to
I want to make custom select from the database table using Linq. We use
I want to make a custom ASP.NET control that is a subclasse of System.Web.UI.WebControls.Calendar
I want to route from controller to custom route I make a custom route
I want to make a simple app, where a UIWebView with custom content will
any one know how to resize the TabBar? i want make it 80px height

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.