iOS app non-retina and retina images concept

后端 未结 5 594
逝去的感伤
逝去的感伤 2020-12-29 12:55

I am asking this question just for information and to clear my concepts about images in iOS application (Retina and non-retina devices

5条回答
  •  我在风中等你
    2020-12-29 13:34

    Yes, you can use just the retina images for both retina and non-retina devices. If you use them in imageviews, buttons, etc, make them scaletofill/aspectfill/aspectfit or whatever you want.

    But the problem with this is that the unnecessary larger sized images will be loaded in memory, and the resizing of images is going to need some processing as well.

    Using separate images does increase the App Bundle size, but reduces the actual ram usage by the application when running.

提交回复
热议问题