开发者

Why I am not able to see the application's icon on my phone or on simulator?

开发者 https://www.devze.com 2023-03-23 05:02 出处:网络
I have copied the icon file into my project and in the plist i have updated the image in icon file section.

I have copied the icon file into my project and in the plist i have updated the image in icon file section. I think this is all i need to see the application's icon on phone and on the simulator but i can't. Do you guys know about anyth开发者_运维知识库ing which could possible go wrong?

Thanks,


If you have got all the obvious correct (you've added the icon file, it's 57x57, it is checked in the project resource list, and the entry in the plist matches the file name etc.) try:

  1. In XCode4, click through "Product -> Clean", and
  2. In the simulator, "iOS Simulator -> Reset contents and settings"


Did you try to remove the app from iphone or simulator? If the app has been previously installed, the icon isn't always replaced.


The correct way to set up icons in an iOS app is to use the following names and sizes for your icons:

  • iTunes: iTunesArtwork (512px by 512px)
  • Retina Display (iPhone 4): Icon@2x.png (114px by 114px)
  • iPad: Icon-72.png (72px by 72px)
  • Retina Settings: Icon-Small@2x.png (58px by 58px)
  • iPod touch: Icon.png (57px by 57px)
  • iPad Settings: Icon-50.png (50px by 50px)
  • iPod Settings: Icon-Small.png (29px by 29px)

Adding them into your plist is not important, especially if you are using Xcode 4. Make sure that you name your icons with the above names. You've indicated in the comments above that you've named your icon iphone_icon.png. I suggest taking the following steps:

  • Rename the icon to Icon.png.
  • Remove your app from the device/simulator.
  • Run a clean build.


Please save your Icon imagename as Icon.png and dimension of Icon.png should be 57*57.

Now, please remove application from iPhone device or Simulator. clean build and all target

Run application again

If you want more help for the Icon in all cases then, you can find sample code of Apple form below link.

http://developer.apple.com/library/ios/#samplecode/Icons/Introduction/Intro.html#//apple_ref/doc/uid/DTS40010442

0

精彩评论

暂无评论...
验证码 换一张
取 消