Will simply putting an image into the project folder do it?
Create your image sized 57x57 pixels (for iPhone).
Name it Icon.png (you can change this name in Info.plist)
Add it to the Resources folder in Xcode.
That should get you started and there are more details here. You may also want to add a smaller icon for the Settings app (29x29 called Icon-settings.png).
Apple iPhone Human Interface Guidelines:
Name your icon file Icon.png and place
it at the top level of your
application bundle.
Related
I am writing my first dual app and cannot figure out how to give tell it about the 2 icons to use
I read the following documentation
To specify the icons for your app, add the CFBundleIcons key to your app’s Info.plist file. The contents of that key include a list of filenames intended for use as the primary app icons. The filenames can be anything you want, but all image files must be in the PNG format and reside in the top level of your app bundle. When the system needs an appropriately sized icon, it uses the information in the key to choose the image file whose size most closely matches the intended usage.
I cannot figure out how to do this.
As Dan mentioned, you only need to drag and drop your images into the proper boxes (iPhone icon box, iPhone Retina icon box, etc).
You'll need the PNGs in the proper size, though. You can find information about sizes at the following link: http://developer.apple.com/library/ios/#documentation/UserExperience/Conceptual/MobileHIG/IconsImages/IconsImages.html
Also if you are using images for your elements (UIButton, UINavigationBar, etc), it's a good practice to name *#2x.png your retina display artwork, like:
navBarBackground.png <- Normal screen
navBarBackground#2x.png <- Retina screen
Edit: This way, your application will automatically use the proper image file with the proper screen.
If you are using Xcode 4+, then all you need to do is click on the project file at the top of the project navigator, then select the target you are building for, and then drag and drop your icon files into the appropriate boxes in the summary view
I want to support two different appln icon images, One is 57x57 and other is 114x114.
How to decide which icon to use in case of iPhone3GS or lower and iphone4.
Thanks.
You don't need to handle this yourself.
Just add both files as items in the "Icon Files" array in your app's info.plist using the #2x naming scheme for the high-res version and the right icon should be selected automatically.
Do I have to put 2 icon images in my build for iPad? and what are the names of those 2 build, one is Icon.png and what is the other one?
Thanks for all your help
For iPhone apps you need to provide a 57x57 Icon.png and may optionally provide a 29x29 Icon-Small.png.
To submit to AppStore you need a 512x512 icon too.
There's no special requirement for iPad. A 57x57 Icon.png is sufficient. Although you can add a larger 72x72 icon and add it into the CFBundleIconFiles key. (See How do I specify both icons for a universal iPhone/iPad app?.)
The default name for an iPad icon is Icon-72.png. You do not currently need two icons for iPad submissions, though there are in fact a dozen other icon sizes that a “complete” app should contain.
I have converted a very simple iPhone app to Universal app. Now I need to customize the view on the iPad to use a higher resolution image for the background, move and resize some labels, etc.
How can I do it without changing the iPhone version? I can see that there is a new MainWindow-iPad.xib, but when I open in IB, it looks empty.
Thanks.
Did Xcode create other iPad specific nib files for you? If you are adding your view(s) to the mainWindow at application launch it will be those that need modifying.
If you are adding images programatically, you can use different resources per target. When you drag a resource into your Xcode project (say background.png) you can select which target to apply the resource to. So if you have an iPadResources folder, you can put your larger background.png into it and add it only to the iPad version. (Remember to GetInfo on the old resource, go to Targets and untick the iPad target).
Hope this helps
Is there any way to change the 47x47 PNG, pointed to within info.plist, for the iPhone springboard icon from within code?
I understand I can add a translation and change the springboard icon per language that the iPhone supports via a changed info.plist per language, but I would like to change the springboard icon for my iPhone app based on a user preference within the app.
Any ideas?
I haven't tried this, but can a file be copied over another within an app bundle? Could I ship with info.plist pointing to "base.png" then replace "base.png" with another PNG I package with my app from within code?
Thanks.
--Batgar
This cannot be done - an iPhone application main bundle is read only, so you cannot change your app icon from within your app.
What you want to do is create a new target (with the relevant icon) for each "sister" app and that will allow you to compile multiple apps using the same code base. Hope this helps!