XCode - Adapt / fill screen for iPad mode

0

I recently started learning to program in XCode. After seeing some tutorials, I started working on a demo of an app whose initial menu features 5 buttons positioned vertically on a stack and a side image as shown in the following image:

ThisisthepreviewiniPhonemode.Notmuchtosay.Theelementsareperfectlypositionedasdesired.

However,whenIpreviewiniPadmode,thestoryisalreadyanother:

As you can see, the elements are poorly positioned. And the size stays rather than adapts to this larger screen.

I'd like to know how I can work around this problem.

    
asked by anonymous 25.05.2018 / 17:55

1 answer

1

Dude, did you do the auto layout?

Take a look at why auto layout works just for that. Adapt the screen to all devices or in the case of a stackView you could make a size-class, but first check the auto layout.

    
08.06.2018 / 20:45