Adding different Icon to Application - iphone

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.

Related

IPhone Ipad Dual app Cannot figure out how to specify 2 icons for a dual app

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

IPhone application and IPad retina icon

I've created an application for iPhone with icon versions for retina and no-retina display (icon#2x.png and icon.png).
Whenever I try to install this application on an iPad 3 a part of Default#2x.png is used instead of icon#2x.png.
Have i to upload specific icon for iPad ? and in this case where!? from Xcode 4.3.2 I see only 2 spaces to include icons, but reserved for iPhone version. I suppose that i need to create a new voice into plist file... but I'm not sure and documentation didn't help me.
I ran into the same problem. I created the resource files Icon-72.png and Icon-72#2x.png in the root of the bundle and added them to "Icon files" in the Info page of the target (Info.plist). Strangely, this didn't do the trick.
My final solution was to convert the target temporarily into an universal app, drag the iPad icons into the corresponding slots of the target's summary page and build it. After that, revert the target to an iPhone/iPod touch app, clean it, built it again.
Interestingly, this seems to work.
Old question, but with Xcode 6.3, if you use assets catalogs, select AppIcon, tick iPad (for iOS 7 and up) and add your 76x76 and 152x152 icons to the catalog
I would create 2 more icons called
icon~ipad.png
icon#2x~ipad.png
The first one will allow for iPad 1/2, and the second one will allow for Retina iPads (iPad 3).
Adding those 2 icons may be enough. Also, try a Clean & Rebuild as Luke said.
Hope this helps =)
I think you should use Icon-72. i used that
When determining the appropriate App-Icon the OS searches the "best fitting size" Icon in the CFBundleIconFiles array or the CFBundleIcons in the Info.plist. If the Default(#2x).png is in one of those arrays, it is selected for best fitting on iPad Retina. Solutions:
Eliminate the Default(#2x).png from this arrays. For the Launch image there is another property. If you do that, the iPhone Retina Icon will be selected.
Optionally add the iPad resolution Icons (72, 72 / 144, 144) to one of those arrays. Then the OS will determine one of those as best fitting.
For the Info.plist keys see also:
https://developer.apple.com/library/ios/#documentation/iPhone/Conceptual/iPhoneOSProgrammingGuide/App-RelatedResources/App-RelatedResources.html#//apple_ref/doc/uid/TP40007072-CH6-SW1
Consider, that the naming of those Icon files are only relevant for older iOS versions. In new versions, the OS just searches for sizes in the mentioned arrays.

Difference between Icon properties in info.plist?

I'm working on an iPhone app and I'm not sure which plist property to use out of the following:
Could anyone shed some light on what each of them do and the difference between them?
Apple requires that you include an icon that measures 57x57 pixels. If you are just going to use that image, then you put it under the Icon File property.
However, Apple recommends that you include images of different sizes for different purposes, such as for the retina display, the ipad, and the search bar. If you are going to include multiple images, which will make your app look better, especially the retina one, then you include all of those images in the Icon Files property. Do note that you do not need the Icon File property if you are using the Icon Files property.
I am still developing for IOS 4 so I do not know about the Icon Files (IOS 5) property but I would assume that there are new places where your icon might pop up in IOS 5 where it will not pop up in older IOS versions. You would place those images under that property.
Hope that helps.

iPad Icon names?

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.

How can I add an icon to an iPhone application?

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.