Carlos
Carlos

Reputation: 125

Having problems adding icon in Xcode

How do I add an app icon on xcode? I tried using an image from google saved it onto my desktop and carry dropped it on the app icon, however this didn't work.

Upvotes: 7

Views: 96

Answers (5)

Fatty
Fatty

Reputation: 71

The icon is obviously used for the home screen, and the launch image is displayed when the app loads. Because you need to provide support for both Retina Display (4 and higher) and standard (3GS and lower), the files should be according the following specifications:

  • Standard icon 57 × 57, named Icon.png
  • Retina Display icon 114 × 114, named [email protected]
  • Standard launch image 320 × 480, named Default.png
  • Retina Display launch image 640 × 960, named [email protected]

After you have these created according these standard size and naming conventions, replace the canned files that PhoneGap already added by overwriting them in your project folder.

Upvotes: 7

sardar
sardar

Reputation: 61

Images.xcassets/AppIcon.appiconset

Upvotes: 6

raul
raul

Reputation: 401

Add the .png file to your Images.xcassets/AppIcon.appiconset

Upvotes: 4

Jeremiah Smith
Jeremiah Smith

Reputation: 740

You need to observe the file format, jpg's are mostly used. Also you need to observe the correct dimensions of the image, if you hover over the icon's placeholder, you see for e.g. iPhone/iPod non-retina 57x57 pixels. In a graphic editor you can change the canvas size.

Upvotes: 1

Juan
Juan

Reputation: 1382

Try the asset catalog, this will help organize all your images and icons.

Upvotes: 0

Related Questions