UITabBarItem image not showing properly

Discussion in 'iOS Programming' started by amalshah71, Mar 6, 2009.

  1. macrumors member

    Joined:
    Feb 1, 2009
    #1
    Hello,
    i am adding tab bar and it's items through interface builder.
    And then setting the UITabBarItem image....but it doesn't show properly...

    It just shows a greyish image...which is not actually the image that i have...

    What am i missing? Are the images for tab bar meant to different of some sort?

    amal
     

    Attached Files:

  2. Guest

    Joined:
    Aug 18, 2007
    #2
    As far as I recall, they need to follow these guidelines:

    30x30
    PNG
    Anti-aliased
    Transparency set
     
  3. Moderator

    dejo

    Staff Member

    Joined:
    Sep 2, 2004
    Location:
    The Centennial State
    #3
    Yes, they are different. The RGB channels of the image are completely ignored and you need to use the alpha channel exclusively.
     
  4. thread starter macrumors member

    Joined:
    Feb 1, 2009
    #4
    Hello,
    My graphics guy seems to have followed the following guidelines

    30x30
    PNG
    Anti-aliased
    Transparency set

    still i have the same ouput


    and one of the image is...

    "The RGB channels of the image are completely ignored and you need to use the alpha channel exclusively."....what does this mean...what do i tell the graphics guy to exactly do...

    If anyone could share one of the images that do work on UITabBarItem....it would be of help...

    Still, what i am missing?


    Thanks
    amal
     

    Attached Files:

  5. Guest

    Joined:
    Aug 18, 2007
    #5
    That second image you linked to is your problem. Tab images are meant to be "cut-out" icons rather than solid squares as you have there.

    Again, correct me if I'm wrong.
     
  6. Moderator

    dejo

    Staff Member

    Joined:
    Sep 2, 2004
    Location:
    The Centennial State
    #6
    Your graphics guy should understand what this means. If not, maybe time for a new graphics guy? :confused:
     

Share This Page