Thursday, February 17, 2011

How do I round corners of myapp's icon

In simulator mode, myapp has an icon with round corners, but on real iPhone, the corners arn't rounded.

From stackoverflow
  • Hello DFG, by default the iPhone should round your corners and add a reflection effect. Be sure you have not added the UIPrerenderedIcon key to your Info.plist file. Hope this helps!

    Adam

    DFG : UIPrerenderedIcon is not in my Info.plist.
    Adam Alexander : Unfortunately I would think that indicates your environment is not working as designed, but someone else here who knows something I don't may be able to provide additional insight.
  • Corners get automatically rounded if you install via MobileInstallation (from iTunes, Xcode or App Store). If you're building the package and installing it into /Applications manually or with cydia/apt, you have to make a rounded icon yourself.

    You can find the images used to round the corners and add reflection in /System/Library/Frameworks/UIKit.framework/Other.artwork, the first 3 images are the mask, reflection and shadow. You can extract the .artwork file with this script here

0 comments:

Post a Comment