Advertise Books Events Forum News Social Networking Support Us

sdkIQ for iPhone
($4.99)

Shape Up
($0.99)

Your First iPhone App
($1.99)

iVidCam Free
(free)

Kid Art
($0.99)

iPUBQUIZ
(£1.19)

ArtStudio
($3.99)

Want your application or service advertised on iPhone Dev SDK?

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

Reply
 
LinkBack Thread Tools Display Modes
Old 07-27-2008, 08:39 PM   #1 (permalink)
Anthony1
Guest
 
Posts: n/a
Default Icon

Can someone please give me step by step on how to add an icon to my project?
Thanks
Anthony
  Reply With Quote
Old 07-27-2008, 08:48 PM   #2 (permalink)
Registered Member
 
tawpie's Avatar
 
Join Date: Jul 2008
Posts: 328
Default

Anthony... here's what worked for me:

1) create your icon, size it to 57x57 and save it as Icon.png. The capital I is important.
2) open your xcode project so you can see all of your "stuff"
3) from the finder, drag the Icon.png file to the Resources in the xcode project, be sure to click the "copy file" checkbox at the top of the dialog box that asks if you want to add this to your project
4) clean all builds
5) next build you should have your icon in the bundle!
tawpie is offline   Reply With Quote
Old 07-28-2008, 06:00 AM   #3 (permalink)
New Member
 
Join Date: Jul 2008
Posts: 60
Default

I've followed the example and it works! The only thing that bothers me is that there is a reflection added to give it an aqua look. I've noticed that most icons have this reflection added to them, but some don't. Does anyone know how to remove it?
jazzmic is offline   Reply With Quote
Old 07-28-2008, 11:48 AM   #4 (permalink)
Registered Member
 
tawpie's Avatar
 
Join Date: Jul 2008
Posts: 328
Default

the reflection is added by the device UNLESS you set the UIPrerenderedIcon in info.plist to true. I opened info.plist using textedit and stuck in this:

<key>UIPrerenderedIcon</key>
<true/>

right before the </dict>

Apple promises to respect this preference.
tawpie is offline   Reply With Quote
Old 07-28-2008, 12:09 PM   #5 (permalink)
New Member
 
Join Date: Jul 2008
Posts: 60
Default

Thankyou! I didnt know you could do that! I think you can add it through xcode, just select Info.plist and add a new row with a boolean value.
By the way, are there preferences in the plist that get erased? I use IUStatusBarHidden in all my tests, do you know if they keep it?
jazzmic is offline   Reply With Quote
Old 07-28-2008, 12:34 PM   #6 (permalink)
Anthony1
Guest
 
Posts: n/a
Default

I'm having trouble cleaning all builds can you tell me how to do that so I know if I am doing it right.
Thanks
Anthony
  Reply With Quote
Old 07-28-2008, 02:11 PM   #7 (permalink)
Registered Member
 
tawpie's Avatar
 
Join Date: Jul 2008
Posts: 328
Default

pretty simple...

Xcode (of course)

Build menu>clean all targets

and then answer "yes!"
tawpie is offline   Reply With Quote
Old 08-12-2008, 02:18 AM   #8 (permalink)
Registered Member
 
Join Date: Jul 2008
Posts: 84
Default

Thx for this info tawpie!

<key>UIPrerenderedIcon</key>
<true/>

Worked out great for me.
drifter7508 is offline   Reply With Quote
Old 08-12-2008, 09:00 PM   #9 (permalink)
Magic Hands' Daddy
 
Join Date: Aug 2008
Location: Memphis, TN, USA
Age: 22
Posts: 1,372
Send a message via ICQ to smithdale87 Send a message via AIM to smithdale87 Send a message via Skype™ to smithdale87
Default Icon

My icon shows up when I run my project in the simulator, but it doesn't show up when I run it on the phone.

Is there anything different that I must do in order to get my Icon showing up on the phone??

Thanks
smithdale87 is offline   Reply With Quote
Old 08-12-2008, 10:26 PM   #10 (permalink)
New Member
 
Join Date: Aug 2008
Posts: 361
Default

Delete the program off your phone and try again.

You may be stuck with old files in the app package.
DevTeamOfOne is offline   Reply With Quote
Old 08-12-2008, 11:15 PM   #11 (permalink)
Magic Hands' Daddy
 
Join Date: Aug 2008
Location: Memphis, TN, USA
Age: 22
Posts: 1,372
Send a message via ICQ to smithdale87 Send a message via AIM to smithdale87 Send a message via Skype™ to smithdale87
Default

Did that and still no success.
Any other suggestions?
smithdale87 is offline   Reply With Quote
Old 08-13-2008, 12:51 AM   #12 (permalink)
Registered Member
 
Join Date: Aug 2008
Posts: 246
Default

Just a small addition to a previous post.. I'm pretty sure the capital I is not important, in fact, neither is the name. My last project didn't have Icon.png set in the info.plist, so I just added the filename of my icon manually.
bikr is offline   Reply With Quote
Old 08-24-2008, 06:21 PM   #13 (permalink)
New Member
 
Join Date: Jul 2008
Posts: 38
Default

>smithdale87

So, did you succeed by those help?
I still have same icon issue...
hogeo is offline   Reply With Quote
Old 08-24-2008, 09:32 PM   #14 (permalink)
Registered Member
 
Join Date: Aug 2008
Location: Clinton Twp, MI
Posts: 106
Default

what size of an image is the file that you used that you build in the simulator? because since the simulator isn't the actually iphone OS it can build with an icon that is 512x512 while the same is not true when you build to device...so make sure your icon specs are good.
rjgrune is offline   Reply With Quote
Old 08-25-2008, 12:38 AM   #15 (permalink)
Registered Member
 
Stitch's Avatar
 
Join Date: Aug 2008
Posts: 398
Default

First thing I would try is:

- ensure you have dragged the Icon.png into Xcode project
- delete application from device
- go into project folder on mac, then into Build directory: delete everything in here
- back in Xcode, build and go
Stitch is online now   Reply With Quote
Old 10-07-2009, 02:32 PM   #16 (permalink)
Registered Member
 
Join Date: Sep 2009
Posts: 64
Default

It's more simple!!!!!

from xcode select one row (no matter why) and RIGHT mouse click.
then Select "Icon already includes gloss and beve" and
that's done!
Dvdkite is offline   Reply With Quote
Old 10-07-2009, 02:51 PM   #17 (permalink)
Registered Member
 
Join Date: Aug 2009
Posts: 123
Default

Quote:
Originally Posted by bikr View Post
Just a small addition to a previous post.. I'm pretty sure the capital I is not important, in fact, neither is the name. My last project didn't have Icon.png set in the info.plist, so I just added the filename of my icon manually.
This is exactly what I have done.
pofak is offline   Reply With Quote
Reply

Bookmarks

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


Enter the iPhone App Challenge!  Win $500!
» Advertisements
» Online Users: 283
20 members and 263 guests
cakesy, camtadao, crooksy88, Erle, Eskema, Falcon80, ghanalupo, jojo453, josh, kiancheong, mixer555, nitrorazor, odysseus31173, SalvoMaltese, shay_somech, SkodaBuddy, StefanL, Stitch, Susan03, thadre
Most users ever online was 779, 05-11-2009 at 09:55 AM.
» Stats
Members: 24,280
Threads: 39,072
Posts: 171,337
Top Poster: smasher (2,575)
Welcome to our newest member, Susan03
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 04:11 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0