ios - Unable to add image as Launchscreen which is compatible with all the iPhones -
i have added image uiimageview
in launchscreen.xib
file , made aspect fit screen of device. i've added image.png, image@2x.png , image@3x.png iphone 4/4s, 5/5s , 6 using image@2x.png leaves borders outside image.
how specify image use make fit every device screen?
in ios 8 , above don't need add conditions iphone or ipad. can set 1 image type of platform using size classes.
just use size classes , set image view. better iphones , ipads.
this comment apple : -
size classes. size classes ios 8 enable designing single universal storyboard customized layouts both iphone , ipad. size classes can define common views , constraints once, , add variations each supported form factor. ios simulator , asset catalogs support size classes well.
Comments
Post a Comment