objective c - Autolayouts Set Portrait and Landscape Views iOS -


i have view has 6 image views displaying images according logic, view can viewed in landscape , portrait both.

in portrait mode shows images like

1  2 3  4 5  6 

and want show in landscape mode

1  2  3 4  5  6 

how can use constraints on these imageviews can desired results.this screenshot of view ease

you talking different designs landscape , portrait modes. therefore, should use size classes.

with size class can create set of constraints landscape mode, set portrait mode, , set both of them.

example (from first link added):enter image description here

my recommendations learning size classes issue (and checked lot):

http://www.mangrove.com/en/journal/2015-01-21-auto-layout-for-existing-ios-projects/

http://mathewsanders.com/designing-adaptive-layouts-for-iphone-6-plus/#aspect-ratio-constraint

http://www.imore.com/adaptive-ui-ios-8-explained

good luck !


Comments

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -