iosiphoneuiimageviewlaunch-screenuiviewcontentmode

Is it possible to use launch image for universal app in imageview of launchsceen.xib or launchscreen.storyboard?


I have to use launch images in imageview of launch storyboard. But it's not supporting all orientations, and if I do scaleToFill in contentmode of imageview, then the image looks stretched. Can anybody help me?


Solution

  • If you use LaunchImage directly, then the launch xib's wont load. If you want to load a xib with custom image for different orientation, then you have to add separate images in the asset catalogue.

    Select the size classes for the image and use appropriate images.

    enter image description here