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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T13:04:04+00:00 2026-06-01T13:04:04+00:00

iOS includes setFinishedSelectedImage:withFinishedUnselectedImage: for customize the tab bar. I created a few textures with

  • 0

iOS includes setFinishedSelectedImage:withFinishedUnselectedImage: for customize the tab bar.
I created a few textures with a 49 height, and I saw a strange black border at the bottom. Then, after adding an alpha channel, I realized the problem was that the images were displaced about 4 points up. I send you a screenshot.
Moreover, this one has the same problem (the black strange line), although is difficult to see it.
http://kurrytran.blogspot.com.es/2011/10/ios-5-tutorial-creating-custom-tab-bar.html

enter image description here

This is the code:
UIImage *selectedImage0 = [UIImage imageNamed:@”count_button_pressed”];
UIImage *unselectedImage0 = [UIImage imageNamed:@”count_button_released”];

UIImage *selectedImage1 = [UIImage imageNamed:@"date_button_pressed"];
UIImage *unselectedImage1 = [UIImage imageNamed:@"date_button_released"];

UIImage *selectedImage2 = [UIImage imageNamed:@"stats_button_pressed"];
UIImage *unselectedImage2 = [UIImage imageNamed:@"stats_button_released"];

UITabBar *tabBar = self.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];

Do you know what happens?
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-06-01T13:04:05+00:00Added an answer on June 1, 2026 at 1:04 pm

    tabbaritem finished images are not vertically centered on the tabbar, since they are a replacement for standard tab bar item icons.

    Tab bar item images are displaced to the top, thus leaving space for the tab bar item title text.

    tabbaritem finished images should contain the icon only. To change the selected item background in a tabbar use the selectionIndicatorImage property in UITabBar

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

Sidebar

Related Questions

I'm trying to get a copy of the iOS simulator that includes an iPad
The new iPhoto for iOS has a help overlay that includes controls that point
Almost every ios app now has something like Feed option. Programming that usually includes
In my ios project I use git as scm. Xcode listing of repositories includes
I have a prototype cell on an iOS storyboard that includes a UIProgressView .
I've gone through the Stanford iOS course a few times and understand all the
I have an ad-hoc deployment of my iOS game, which includes in-app purchase. It
iOS SDK 4.2 includes a new UIApplicationDelegate method called application:openURL:sourceApplication:annotation: . It is a
As of iOS 5, the keyboard can now be a variable height based on
I'm developing an iOS app that includes support for OpenFeint. OpenFeint includes support for

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.