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.
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):
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
Post a Comment