Go Back   iPhone Dev SDK Forum > Development Forums > iPhone SDK Development

Featured Member Applications

TanZen ($0.99)

Endless Walls ($0.99)

Air Hockey ($0.99)

SUPER STRIKE - Motion Bowl ($0.99)

BarSlot ($0.99)

MeterRead ($0.99)

Colorblind Helper ($4.99)

gContacts ($1.99)

ProgCalc ($1.99)

Forex On The Go Lite (FREE)

HUE knewit! ($0.99)

Want your application to be advertised here?

» Advertisements


Visit our friends over at The App Show! Steve and Dave produce a weekly show shining a light on the iPhone 2.0 software and the applications being developed by the amazing development community for the iPhone SDK!
» Online Users: 95
14 members and 81 guests
Alex.be, demowolf, Derek, detz, EPage_Ed, FetaBoy, futurejones, jclardy, keyboardcowboy, rbmac, SkylarEC, smith288, TheGame, Witch_King
Most users ever online was 207, 10-24-2008 at 09:29 AM.
» Stats
Members: 3,917
Threads: 5,629
Posts: 23,291
Top Poster: scottiphone (705)
Welcome to our newest member, mef
Reply
 
LinkBack Thread Tools Display Modes
Old 08-27-2008, 08:50 PM   #1 (permalink)
Member
 
Join Date: Aug 2008
Posts: 39
Question Tab Bar icons

Just a quick question on the tab bar control.

What size are the icons. I want to use my own text and icon but can't find the icon size in the documentation.

Anybody know?

Thanks
__________________
"If the automobile had followed the same development cycle as the computer, a Rolls-Royce would today cost $100, get a million miles per gallon, and explode once a year, killing everyone inside." (It would also clearly have been developed by Microsoft)
kieran12 is offline   Reply With Quote
Old 08-27-2008, 10:22 PM   #2 (permalink)
Senior Member
 
Join Date: Aug 2008
Posts: 146
Default

I just used the screenshot capture and dragged around one of the stock images to guesstimate a good size...I came up with 30x30px, and that actually fit very well.

You could probably go wider depending on your situation, but I think you would only have room to go maybe 5-10px taller.

Also, I used a light gray to dark gray gradient to simulate the stock images. The application automatically applies the blue glow when you click.
skinrock is offline   Reply With Quote
Old 08-27-2008, 11:23 PM   #3 (permalink)
Some guy
 
MattCairns's Avatar
 
Join Date: Jul 2008
Location: Canada
Posts: 108
Send a message via AIM to MattCairns
Default

Yep, I find that anywhere from 25-30px height and width seems to fit quite well. Just eye it, there is no real requirement for their sizes.
MattCairns is offline   Reply With Quote
Old 08-28-2008, 06:50 AM   #4 (permalink)
Member
 
Join Date: Aug 2008
Posts: 39
Default

Thanks. I thought about 30 px was right. But when I save the image and add it to my project and set it as the tab bar icon all I get is a blue gradient square. I have tried saving as png, tiff and jpeg but I still get this blue square instead of my image. Any ideas?
__________________
"If the automobile had followed the same development cycle as the computer, a Rolls-Royce would today cost $100, get a million miles per gallon, and explode once a year, killing everyone inside." (It would also clearly have been developed by Microsoft)
kieran12 is offline   Reply With Quote
Old 08-28-2008, 06:53 AM   #5 (permalink)
Member
 
Join Date: Aug 2008
Posts: 39
Default

I've attatched a picture of it to this
Attached Images
File Type: png Picture 1.png (5.6 KB, 86 views)
__________________
"If the automobile had followed the same development cycle as the computer, a Rolls-Royce would today cost $100, get a million miles per gallon, and explode once a year, killing everyone inside." (It would also clearly have been developed by Microsoft)
kieran12 is offline   Reply With Quote
Old 08-28-2008, 06:55 AM   #6 (permalink)
Member
 
Join Date: Aug 2008
Posts: 39
Default

I've attatched a picture of it to this

__________________
"If the automobile had followed the same development cycle as the computer, a Rolls-Royce would today cost $100, get a million miles per gallon, and explode once a year, killing everyone inside." (It would also clearly have been developed by Microsoft)
kieran12 is offline   Reply With Quote
Old 08-28-2008, 06:56 AM   #7 (permalink)
Senior Member
 
Stitch's Avatar
 
Join Date: Aug 2008
Posts: 193
Default

The tab bar image is 30x30 - mentions it somewhere in the documentation.

You'll also have to supply a grey scale image. The iPhone will automatically fill it with a blue gradient IF it is the selected tab.

At present I do not believe you can change this colour - not with standard methods anyway.

You'll have to include a transparent background if you want it to be transparent.
Stitch is offline   Reply With Quote
Old 08-28-2008, 06:59 AM   #8 (permalink)
Senior Member
 
Stitch's Avatar
 
Join Date: Aug 2008
Posts: 193
Default

You can see examples of tab bar icons in "The Elements" sample code.
Stitch is offline   Reply With Quote
Old 08-28-2008, 07:03 AM   #9 (permalink)
Member
 
Join Date: Aug 2008
Posts: 39
Default

Thanks stitch, it was because my image wasn't graysale.
__________________
"If the automobile had followed the same development cycle as the computer, a Rolls-Royce would today cost $100, get a million miles per gallon, and explode once a year, killing everyone inside." (It would also clearly have been developed by Microsoft)
kieran12 is offline   Reply With Quote
Old 10-03-2008, 05:36 AM   #10 (permalink)
Junior Member
 
Join Date: Oct 2008
Posts: 1
Default

Quote:
Originally Posted by Stitch View Post
You can see examples of tab bar icons in "The Elements" sample code.
Thanks a lot Stitch!
pulp is offline   Reply With Quote
Reply

Bookmarks

Tags
graphics, icon, image, newbie, tab bar

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Powered by vBadvanced CMPS v3.0.1

All times are GMT -5. The time now is 08:13 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0