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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T05:12:18+00:00 2026-05-28T05:12:18+00:00

I tried the new Customizing API for iOS 5 and have some problems I

  • 0

I tried the new Customizing API for iOS 5 and have some problems I don`t understand. The way I do it:

UITabBar *tabBar = [rootController tabBar];
if ([tabBar respondsToSelector:@selector(setBackgroundImage:)])
{
    [tabBar setBackgroundImage:[UIImage imageNamed:@"tabbar_bg.png"]];
    tabBar.selectionIndicatorImage = [UIImage imageNamed:@"over.png"];
    tabBar.tintColor = [UIColor colorWithRed:56.0/255.0 green:63.0/255.0 blue:74.0/255.0 alpha:1.0];
    tabBar.selectedImageTintColor = [UIColor colorWithRed:94.0/255.0 green:102.0/255.0 blue:114.0/255.0 alpha:1.0];
}

The problem is shown on the image below:

enter image description here

The border ist my Problem… and it only occurs if I try to use it with nice ( 😛 ) colors.. if I try it with white it looks like this:

enter image description here

Do you have any ideas how to fix it?

  • 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-28T05:12:19+00:00Added an answer on May 28, 2026 at 5:12 am

    If you create a subclass of UITabBarItem and implement the methods

    - (UIImage *)selectedImage
    - (UIImage *)unselectedImage
    

    You can return whatever images you want from these and they won’t have any styling effects applied.

    Technically these are private methods, but you aren’t calling them, you are overriding them, and I’ve seen plenty of apps use this technique without being rejected.

    You can also use a category to override these methods for all tabbaritems in your app. A good trick is to just override selectedImage to return image, like this:

    - (UIImage *)selectedImage
    {
        return self.image;
    }
    

    That way, all of your tab bar items will use whatever image you supply without applying any effects for the selectedImage, but will still use the default grey styling for the unselectedImage. Note that this means that you supply an image with colours for the tab bar items, not just a mask image as normal.

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

Sidebar

Related Questions

I'm new in soapclient, I have tried to do some study online and also
I want to use external fonts in my app. I have tried adding new
I have a DIV containing text. Previously I just tried setting new HTML like
I am reasonably new to Wordpress custom themes but I do have some knowlege
I tried to use this: private void CreateDevice() { _playbackDevice = new WaveOut(); _playbackDevice.PlaybackStopped
I am new to java and jboss I tried these commands on my Centos5.4
My code that I tried is as follows: var dataO = new Object(); dataO.numberId
I'm still rather new to iPhone development and I tried something I didn't it
I'm new to JUNG . I tried to draw a graph of a tree
I am new to Objective-C, but I tried to use HOM ( higher order

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.