ios - Orientation change with Auto Layout in Interface Builder -


how can constrain view such centered when in portrait, moves 1 side of screen when in landscape? have 1 view above in portrait, want them go side-by-side when orientation changes. don't want have create 2 different layouts each orientation, , i'd stay in interface builder if possible.

for clarity i've created following scrawling:

enter image description here

i'd able rotate between these layouts.

refer https://www.raywenderlich.com/113768/adaptive-layout-tutorial-in-ios-9-getting-started

to achieve want have play size class. use of size class ios 9 onwards different from ios 7 & 8. if targetting ios 7 follow above link in case of ios 9 same can acheived using stackview.


Comments

Popular posts from this blog

php - Permission denied. Laravel linux server -

google bigquery - Delta between query execution time and Java query call to finish -

python - Pandas two dataframes multiplication? -