Search code examples
iphoneobjective-cioscocoa-touchretina-display

how to make the icon.png be shown with older iphones and the [email protected] a newer ones?


I have made 2 icons, one 57x57 for older iPhones without retina display, and other 114x114 for retina ones. On the info.plist I put the icon file = icon.png, and now? Where I put the [email protected] and where i define witch one will be used?


Solution

  • in xcode 4.5 and so on you do not need to manually add the icon.png's in the info .plist anymore. or at least that is what i gathered. here is the step by step of the stuff you have to do.

    • in xcode when project is open look at the right side pane where all the classes are.
    • click on the name of the project (hilighted in blue)
    • then on the next pane select the target ( usually the name of the project again)
    • make sure summery is selected from the top of the screen
    • scroll down until you see two empty squares that are representing the icons you have to use.
    • if you hover your mouse over them it shows what icon has to go where. ( 57 X 57 goes to the left square)
    • drag the icon png file and drop it in the square it belong and follow the same step for the @2x.png.

    now if you go to your ufo.plist file you see that the icons included in the icon section.

    hope this helps

    adrian