.xcassets Support for older iOS versions

Any where I did not find the reverse compatabilty information for the .xcassets template.

If I transfer current image objects such as appicon, image projector icons, etc. into the .xcassets template, using the option using the resource directory in the settings of the new xcode 5, my application will work in older versions, such as ios6 and 5, if I run this.

And naming conventions in code that is already used for images will work correctly.

Thanks at Advance.

+6
source share
1 answer

Using the asset catalog is only compatible with iOS 5 and above. You can set different icons for each (install icons compatible with iOS 5 and 6, and others with iOS 7).

Pay attention to 2 things:

  • You will need to have more icon sizes.

  • If your application is an iPhone, only if the user launches it on the iPad with iOS 7 and you only place iPhone icons, the user will have a blank icon, which is very ugly. For some reason, you will not get any error, but, unlike Xcode 4.x, you should, in my opinion, add iPad icons in any case, no matter what application you are going to develop (everything should also run on iPhone iPhone ) to do this, go to the "identity inspector" in the asset catalog and add iPad icons (will not be added by default).

+11
source

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