Setting up a custom iOS application icon

Unlike Android devices, the iOS application icons require specific names and sizes to target specific devices. For example, to target an iPad device, the icon should be named Icon-72.png and should be of size 72x72. If not given, the iOS will scale the available icons to fill in the targeted device. The same concept goes for launch images.

Now, open the data folder in our CanyonBunny-robovm project. The following is a screenshot of the data folder:

Setting up a custom iOS application icon

Now, delete all the icon images and copy the Canyon Bunny icon to the data folder. Also, remove the reference to Icon-72.png from the Info.plist.xml under <key>CFBundleIconFiles</key>, as shown here:

<array>
  <string>Icon</string>
</array>

If you have more icons to add, then you can also update them in the Info.plist.xml file. However, for the launch images, you don't need to add them in the Info.plist.xml file as it will be automatically detected by the device based on the name.

Note

The support for different screens and launch image sizes is a complex topic. For more information, check out the official Apple Developer website at https://developer.apple.com/library/ios/documentation/userexperience/conceptual/mobilehig/IconMatrix.html#//apple_ref/doc/uid/TP40006556-CH27-SW1.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset