ios - launch screen xib -


i found easy way adaptive iphone4/4s,5,6,6p size.

  1. delete launchscreen.xib in projecttagets->app icons andlaunch images delete launchscreen.xib

  2. add default images (iphone4/4s,5)size

after can adaptive iphone size ever have not use autolayout .

question:

  1. why can adptive ever have not use autolayout ?

  2. what harm there in way ?

  3. which best way adaptive iphone size ?

  1. autolayout layout engine, has nothing resolution of device. when ios launches app, check if app has launch image targeted on specific device(prior ios 8) or launch screen xib file (ios 8). if finds it, ios run app in native resolution of current device.

  2. because launch screen xib uses size class, can use 1 launch screen xib adopt different resolution devices. since launch screen works in ios 8, if use support different resolution, have sure support ios 8. if want support older ios versions can not use launch screen xib.

  3. if want app run on ios 8 devices, it's fine use launch screen xib. if that's not case, should use old launch images.

see question:

how support various iphone screen sizes of 2014?

and this

iphone 6 plus resolution confusion: xcode or apple's website? development


Comments

Popular posts from this blog

java - Plugin org.apache.maven.plugins:maven-install-plugin:2.4 or one of its dependencies could not be resolved -

Round ImageView Android -

How can I utilize Yahoo Weather API in android -