 |
 |
|
 |
07-27-2008, 08:39 PM
|
#1 (permalink)
|
|
Guest
|
Icon
Can someone please give me step by step on how to add an icon to my project?
Thanks
Anthony
|
|
|
|
07-27-2008, 08:48 PM
|
#2 (permalink)
|
|
Registered Member
Join Date: Jul 2008
Posts: 328
|
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!
|
|
|
07-28-2008, 06:00 AM
|
#3 (permalink)
|
|
New Member
Join Date: Jul 2008
Posts: 60
|
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?
|
|
|
07-28-2008, 11:48 AM
|
#4 (permalink)
|
|
Registered Member
Join Date: Jul 2008
Posts: 328
|
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.
|
|
|
07-28-2008, 12:09 PM
|
#5 (permalink)
|
|
New Member
Join Date: Jul 2008
Posts: 60
|
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?
|
|
|
07-28-2008, 12:34 PM
|
#6 (permalink)
|
|
Guest
|
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
|
|
|
|
07-28-2008, 02:11 PM
|
#7 (permalink)
|
|
Registered Member
Join Date: Jul 2008
Posts: 328
|
pretty simple...
Xcode (of course)
Build menu>clean all targets
and then answer "yes!"
|
|
|
08-12-2008, 02:18 AM
|
#8 (permalink)
|
|
Registered Member
Join Date: Jul 2008
Posts: 84
|
Thx for this info tawpie!
<key>UIPrerenderedIcon</key>
<true/>
Worked out great for me.
|
|
|
08-12-2008, 09:00 PM
|
#9 (permalink)
|
|
Magic Hands' Daddy
Join Date: Aug 2008
Location: Memphis, TN, USA
Age: 22
Posts: 1,372
|
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
|
|
|
08-12-2008, 10:26 PM
|
#10 (permalink)
|
|
New Member
Join Date: Aug 2008
Posts: 361
|
Delete the program off your phone and try again.
You may be stuck with old files in the app package.
|
|
|
08-12-2008, 11:15 PM
|
#11 (permalink)
|
|
Magic Hands' Daddy
Join Date: Aug 2008
Location: Memphis, TN, USA
Age: 22
Posts: 1,372
|
Did that and still no success.
Any other suggestions?
|
|
|
08-13-2008, 12:51 AM
|
#12 (permalink)
|
|
Registered Member
Join Date: Aug 2008
Posts: 246
|
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.
|
|
|
08-24-2008, 06:21 PM
|
#13 (permalink)
|
|
New Member
Join Date: Jul 2008
Posts: 38
|
>smithdale87
So, did you succeed by those help?
I still have same icon issue...
|
|
|
08-24-2008, 09:32 PM
|
#14 (permalink)
|
|
Registered Member
Join Date: Aug 2008
Location: Clinton Twp, MI
Posts: 106
|
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.
|
|
|
08-25-2008, 12:38 AM
|
#15 (permalink)
|
|
Registered Member
Join Date: Aug 2008
Posts: 398
|
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
|
|
|
10-07-2009, 02:32 PM
|
#16 (permalink)
|
|
Registered Member
Join Date: Sep 2009
Posts: 64
|
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!
|
|
|
10-07-2009, 02:51 PM
|
#17 (permalink)
|
|
Registered Member
Join Date: Aug 2009
Posts: 123
|
Quote:
Originally Posted by bikr
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.
|
|
|
 |
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
» 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 |
|