ios - Why do the layout positions change in preview when I simply add a new screen size to the preview screen? -


i have 4 inch screen displayed in assistant editor preview while i'm adding constraints view controller in storyboard. once situated in correct position constraints , layout looks on 4 inch screen, add screen size preview window. reason, adding screen size preview window causes layout preview on 4 inch screen changed. odd behavior or doing wrong?

i had similar issue, instead 4.7 inch screen size. found using 2 things helped me keep layout , constraints consistent across screen sizes.

first, keep storyboard default layout universal (square) constraints aren't applied 1 screen size only.

second, when setting constraints, use "reset suggested constraints" button located on third constraints tab.

i have yet experience layout issues using method. hope helps!


Comments

Popular posts from this blog

java - Ebean enhancement ignores a model -

ubuntu - How to disable Kernel Module Signing in linux -

SQL php on different pages to Insert (mysqli) -