Is it possible to use transparency in an iPhone app icon?

前端 未结 6 928
星月不相逢
星月不相逢 2021-02-03 19:00

I created a 57×57 circular icon (without shine) which has transparency outside of the circle for my app. I can successfully install the app on Simulator and iPhone. It works fi

相关标签:
6条回答
  • 2021-02-03 19:37

    Apple may have updated the interface guidelines since this question was asked, but transparency is now expressly not allowed. See more here:
    https://developer.apple.com/ios/human-interface-guidelines/icons-and-images/app-icon/

    0 讨论(0)
  • 2021-02-03 19:44

    Make all of your transparent areas black. Then add a UIPrerenderedIcon key with a value of "YES" to your applications Info.plist.

    Otherwise it will appear shiny on the users phone.

    0 讨论(0)
  • 2021-02-03 19:46

    When trying to prepare an app update in iTunes Connect today I uploaded a 1 layer 1024x1024 PNG in RGB 8bits/channel color mode. I got an error message stating:

    "Images can’t contain alpha channels or transparencies.":

    That's the rule for the App Store as recently as 2015/01/22. I'm including a screenshot.

    enter image description here

    0 讨论(0)
  • 2021-02-03 19:51

    For the app, you can use your transparent PNG as the icon. When you upload to the itunes store, they require a .jpg which of course has no transparency.

    As for if they will accept your app with a substandard shaped icon, maybe, maybe not. The could approve it one time and then reject an upgrade, it will probably depend if they are paying attention and notice the icon or not.

    0 讨论(0)
  • 2021-02-03 19:52

    Yes, you can. Many my apps with icons contains alpha channel are approved (I'm lazy or forgot to remove the alpha channels). But you shouldn't use transparent pixels in the icons.

    0 讨论(0)
  • 2021-02-03 19:55

    I've looked into this for a client who would like a circular transparent icon to match his company's logo. Here's what I've found:

    The 512x512 iTunes icon is uploading in JPEG or TIFF format, which don't support transparency, so you'd have to make up a square background for your circle. Since the home screen icon is supposed to look exactly like the large icon, your home screen icon will also have to have the same background.

    As brandon suggests you could use a pre-rendered icon with a black background, but you'd be at the mercy of the App Store reviewers. The docs say your home screen icon must be a "flattened, square-image icon that is 57x57 pixels" (my emphasis). You might get away with a circular icon with a black background, but it really depends on how the reviewer tests that requirement. You might get away with it if they don't check, or only check that the alpha channel is 100% everywhere, but won't if they decide based on whether the icon looks square.

    A circular icon will look odd next to all the other icons on the users' phones, so it's probably a bad idea anyway.

    0 讨论(0)
提交回复
热议问题