-2

My App with a portrait screen is done

It uses storyboards.

It needs to support landscape.

Lanscape layout is completely different (Controls moving to different parts of the screen) than Portrait but uses the same set of controls

What are the best practices -

Start with Portrait and copy the storyboard to Landscape This forces me to maintain two storyboards all the time.

-OR-

Keep using constraints and programmatically change the constraints to move the controls at run time.

-OR- Something else

OneGuyInDc
  • 1,557
  • 2
  • 19
  • 50

1 Answers1

0

I would add two container views to each View Controller that you want to show different stuff for every orientation so when the orientation changes you hide and show the different containers whenever you want (landscape and portrait).... because two Storyboards is a lot of work and a lot more complicated.

Maybe you want to read this question

Hope it helps!

Community
  • 1
  • 1
Karlo A. López
  • 2,548
  • 3
  • 29
  • 56