ios - Background image for LaunchScreen.storyboard -


i using storyboard launch screen.

it has full size uiimageview artwork , language dependent uilabel rendered on it.

i have .png files possible iphone screen sizes (ipad not necessary).

the artwork contains circle looks distorted when use same image iphone 4s , iphone 5.

approach 1

in launchscreen.storyboard, add uiimageview iphones , use imageset, defined in assets.xcassets.

when this, image@2x of image set used iphone 4s , iphone 5 5s. 1 of both looks bad, because iphone 4s , 5 have different heights.

i not aware can use size classes in storyboard distinguish between iphone 4s , iphone 5. or can i?

approach 2

create launch image set in assets.xcassets, can hold necessary image sizes.

i can't select launch image set in uiimageview image.

question

in full size uiimageview in launchscreen.storyboard: how display different pngs for

  • iphone 4 + 4s 640 x 960 pixels
  • iphone 5 + 5s 640 x 1136 pixels
  • iphone 6 + 6s 750 x 1334 pixels
  • iphone 6 plus + 6s plus 1242 x 2208 pixels (portrait , landscape)

the main problem appears distinguish between 4 + 4s , 5 + 5s.

a circle looks distorted when use same image iphone 4s , iphone 5.

the problem content mode of image view. use content mode not stretch image out of aspect ratio.


Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

ruby on rails - Seeing duplicate requests handled with Unicorn -