When you are using Xcode to make an iPhone app, how do you change the app's icon? - iphone

When you are using Xcode to make an iPhone app, how do you change the app's icon? Right now my icon for my app is just plain white.

Create a 57x57 PNG file and import it into your project bundle. Then open the .plist file that is included in your project and edit the value for the key "Icon File" to match the name of the icon you provided (CFBundleIconFile is the actual key, but the Xcode editor will display the nicer name for you).

In Xcode 4, you can go to your app's Summary page and there is a section called App Icons. Then just drag and drop an image into one of the "drop zones". It just works! :D

If you don't specify the icon in the Info.plist file, then Xcode assumes that a file named "icon.png" in your resources folder is the icon for the application.

In Xcode4 go to your applications summary section by selecting target project there you see section with name app icons.select your icon image of size 57x57.just do it it will work

In Xcode 5 you can do it very simply:
1) go to images.xcassets
2) click on AppIcon
3) select Show Overview instead of Slicing
4) drag and drop the appropriate icon sizes onto the icon slots
5) rebuild - and you are good to go.

Related

How can i change the app icon while building in Rhomobile

I followed the docs for creating the ios application using Rhomobile.
I have all the icon images placed inside icon folder.
But after opening the application in xcode, it shows the rhomobile default icon.
How and where can i change the icon ?
click on your project name go to TARGETS>>summary>>App icon.
Now drag your icon.
When you runs the command to create the xcode project, in your rhodes folder, one icon.png image is generated. You need to replace that image with yours.
Path : <rhodes_path>/platform/iphone/icon.png
Then you can open the xcode and start building the app.

Xcode puts Default.png in my plist as an Icon file when I assign a Launch Image

When I set a Launch Image, Xcode creates a copy as Default.png and creates an entry in my plist in Icon Files (iOS 5) / Primary Icon / Icon Items --> Item 1 : Default.png
Item 0 : MyIcon.png is the app icon which I have already placed through the Target.
The reason this is a problem is that the launch image then takes precedence over the actual icon and as a result, it shows as the primary icon instead of my actual icon image.
Why is Xcode doing this?
Can I safely delete the Default.png entry from my .plist? (this seems to fix the problem)
Do I need to copy Default.png somewhere else?
Thanks!
There is also an alternate way. Follow this simple step:
Just delete the Default.png file. Select it again in the summary section project's target settings. you can also drag drop it the on the icon of launch image in the summary section.
The answer is that if you are developing and app for iOS 5, there are two different sections for declaring your icons. The Info editor in the Project editor doesn't show the iOS 5 section. You have to load the file in the Property List editor.
Basically for pre-iOS 5 there is 'CFBundleIconFiles', for iOS 5+ it's 'CFBundleIcons'
Make sure that these have the same icon files names in them.

xcode app icon is not applied anymore

I have been testing and developing my app since few months and now, app icon applied on device not correspond as icon set on target summary. I tried to remove it and attach it again but no succes! App icon appears on device as a small capture of splash screen! Why? How to solve it? Thank you
Make sure that the file name under the "Icon Files" key in the info.plist is same as your app icon file. You can view the info.plist by selecting the target and then selecting the "Info" tab.

Where do I set the application icon in an iphone app

I wrote an app for iphone. All is working. I see it in an ipod. I have done all the testings and thanks to you guys I was able to resolve all my issues so far. Where do I set my application icon? I know it is in info.plist. But how do I change it?
Thanks
Saro
This is what I have in my Info.plist for the icons of all supported devices (ipod, iphone, retina display, ipad):
The #2x files refer to retina display. The -72 refer to ipad.
EDIT:
This is the textual representation of the list above in my info.plist file:
<key>Icon files</key>
<array>
<string>Icon.png</string>
<string>Icon#2x.png</string>
<string>Icon-72.png</string>
<string>Icon-Small-50.png</string>
<string>Icon-Small.png</string>
<string>Icon-Small#2x.png</string>
</array>
XCode 4 EDIT;
As of Xcode 4, the best way to set the icons for your app is to access the Summary pane of your target settings, as displayed in the image below, and drag-drop the icons on the available controls (separately for iPhone and iPad, retina and non-retina).
If you're using Xcode 4, the easiest way to change the icon is to drag a new icon into the App Icon pane of the target summary panel. Select your project in the project navigator, click on your target, select the Summary tab, and if necessary scroll down a bit until you see the App Icon pane. If you don't see it, try clicking the disclosure triangle next to the "iPad/iPhone Deployment Info" title. You can also set things like the main nib, supported orientations, and launch image(s).
See the Icon and Image Design section of the mobile HIG, which provides details about every icon you need and how to configure them appropriately.
For latest versions of Xcode, do the following:
1) Go to image assets,
2) Select App Icon
3) Drag and drop necessary files

iPhone App Icon in Binary

I understand many different sized icons for my app are required for App Store Submission according to Apple's Documentation. However, I am unsure on how to include them? Do I just add them as Icon.png to the Binary?
This is much easier to handle in xcode4 if you have it, just click on your project (should be at the top of the project navigator window) then go to the summary tab, and you can select the icons from there. Then when you build your app, they will be included in the binary
You include them in your project and reference them from your info.plist file under the icon files section.
Here is an updated list of the filenames and sizes you can add: http://www.weston-fl.com/blog/?p=840/