ios - Proportional layout for iPhones (from 5 to 6 Plus) with Size Classes -
i have passed through number of tutorials size classes still cannot figure out 1 thing.
iphone 5, iphone 6 , iphone 6 plus have absolutely same screen aspect ratios, want them utilize same content layout. saying same mean proportional width , height of screen.
but! cannot find way create proportional iphones!
there few constraints back upwards proportions: "aspect ratio", "same width" + "multiplier", "same height" + "multiplier"
constrains, such leading edges, horizontal center in container, pin constraints operate absolute values in logical points, , iphones' screens have different sizes in logical points; thereby cannot accomplish same image on iphones.
updatei'm adding image explain want achieve:
if want create such poor utilize of bigger screen, not include launch file or launch images 4.7" , 5.5" devices , utilize scaled-up 4" layout.
but please don't of that. screens might same aspect ratio, not same size , treating them way makes bad user experience.
ios xcode interface-builder size-classes
No comments:
Post a Comment