Xcode or iOS will not use my icon-72.png on iPad

I created 3 files for the application icon: Icon.png, Icon-72.png and Icon@2x.png. Icon@2x.png is perfectly displayed on iPhone 4. However, the simulator uses only 57px version. With the iPad, neither the simulator nor the iPad itself uses the Icon-72.png file. Only 57px version.

Help!:)

+3
source share
3 answers

If you want the iPad to pick up several icons without specifying their names, make sure CFBundleIconFile(the only other suggestion) is unset . If it is installed in a specific icon file, this icon will always be used no matter which device you are on.

Although christophercotten correctly refers to the 3.2+ method for specifying multiple icon files if they differ from the default values.

+6
source

Have you added icons to Info.plist? You will need to make sure that you add to the entry for "CFBundleIconFiles" and add them to the list. You can see it on the Apple Developer website with screenshots:

http://developer.apple.com/iphone/library/qa/qa2010/qa1686.html#IPHONEADDITEMS

, .

+6

, 6 iPhone iPad. Info.plist :

<key>CFBundleIconFile</key>
<string>Icon</string>
<key>CFBundleIconFiles</key>
<array>
    <string>Icon.png</string>
    <string>Icon-58.png</string>
    <string>Icon-72.png</string>
    <string>Icon-114.png</string>
    <string>Icon-Small-50.png</string>
    <string>Icon-Small.png</string>
</array>

, CFBundleIconFile. .

PNG :

  • Icon.png, 57px.
  • Icon-58.png, 58px
  • Icon-72.png, 72px
  • Icon-114.png, 114px.
  • Icon-Small.png, 29px.
  • Icon-Small-50.png, 50px.

, PNG . iOS 4.0 SDK, , 3.1.3.

+2

Source: https://habr.com/ru/post/1754890/


All Articles