LaunchImage does not handle certain iPads correctly

152 views Asked by At

I am using an images.xcassets for my app's LaunchImage, and certain types of iPad's are showing the iPhone image or the AppIcon image on launch instead of the designated iPad image.

Ipad 5th Generation 10.3 simulator

Here is a screenshot of my App Icons and Launch Images Settings

enter image description here

Below is the code for Contents.json of my xcassets file:

{
  "images" : [
    {
      "extent" : "full-screen",
      "idiom" : "iphone",
      "subtype" : "736h",
      "filename" : "ios_launch 7 plus.png",
      "minimum-system-version" : "8.0",
      "orientation" : "portrait",
      "scale" : "3x"
    },
    {
      "extent" : "full-screen",
      "idiom" : "iphone",
      "subtype" : "667h",
      "filename" : "ios_launch [email protected]",
      "minimum-system-version" : "8.0",
      "orientation" : "portrait",
      "scale" : "2x"
    },
    {
      "orientation" : "portrait",
      "idiom" : "iphone",
      "filename" : "ios_launch se-1.png",
      "extent" : "full-screen",
      "minimum-system-version" : "7.0",
      "scale" : "2x"
    },
    {
      "extent" : "full-screen",
      "idiom" : "iphone",
      "subtype" : "retina4",
      "filename" : "ios_launch se.png",
      "minimum-system-version" : "7.0",
      "orientation" : "portrait",
      "scale" : "2x"
    },
    {
      "orientation" : "portrait",
      "idiom" : "ipad",
      "filename" : "ios_launch ipad.png",
      "extent" : "full-screen",
      "minimum-system-version" : "7.0",
      "scale" : "1x"
    },
    {
      "orientation" : "portrait",
      "idiom" : "ipad",
      "filename" : "ios_launch ipad pro.png",
      "extent" : "full-screen",
      "minimum-system-version" : "7.0",
      "scale" : "2x"
    }
  ],
  "info" : {
    "version" : 1,
    "author" : "xcode"
  }
}

I am unsure why this is happening. This does not occur on iPad Air. There are very little docs that I have been able to find to help. Appreciate any help I can get.

1

There are 1 answers

1
PradeepKN On

Use Launch storyboard and set the respective image and align image aspect ratio from center.