Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

How should I do for my Tab Bar icon???(For iPhone 4)

I have already had the design. However, there are two resolutions:

  • 30 x 30 pixels
  • About 60 x 60 pixels (high resolution)

Are they the same way to implement?


What is the implementation there???


I tried to put the icon file(png file) in my resources section of my Xcode, and then add the file from the attributes window of the tab bar. But It turned out that the image couldn't be shown, it was a square of gray color, no lines, no figures!


How come? What should I do?


Thanks a lot!!!

Posted on Sep 18, 2011 7:37 PM

Reply
Question marked as Best reply

Posted on Sep 18, 2011 8:05 PM

Tabbar icons aren't used directly...just the alpha channel.


No alpha channel...no ghosting of the image in the tabbar.


See this document:

“Icons for Navigation Bars, Toolbars, and Tab Bars”

4 replies

Sep 18, 2011 8:33 PM in response to senfromhong kong

From the linked document:


For tab bar icons, create an icon in the following sizes:

  • For iPhone and iPod touch:
    • About 30 x 30 pixels
    • About 60 x 60 pixels (high resolution)
  • For iPad:

    About 30 x 30 pixels

Note: The icon you provide for toolbars, navigation bars, and tab bars is used as a mask to create the icon you see in your application. It is not necessary to create a full-color icon.


Use Preview, GraphicConverter, etc....see the Mac App Store for image editors and add an alpha channel to your image...size it, and add it to the bundle.

How should I do for my Tab Bar icon???(For iPhone 4)

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.