5

I need to design different layouts for landscape and potrate I know how to design using .xib file but don't get how design different layout using storyboard.

I want something like This but using storyboard.

please help me.

1
  • 2
    Xcode6 and the the new size classes were designed to address this issue exactly. The new Interface Builder tools are amazing and now allow you to use a singly storyboard to target all screen sizes as well as different layouts for each. I recommend watching the WWDC 2014 videos on the new Interface Builder....Short answer is you can do this with a singly storyboard now!!
    – DBoyer
    Sep 21, 2014 at 18:01

1 Answer 1

4

You will need to create different views or different constraints for each screen layout.

You can select the current screen layout here:

enter image description here

And you can determine whether a view is going to be present (installed) in that screen layout here (look at the bottom):

enter image description here

It should be clear after you play a bit with it. :)

1
  • So easy. You just create a landscape and portrait view for all your views. Thank you sir!
    – MendyK
    Jul 25, 2017 at 3:03

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.