IPhone Storyboard: different scene for portrait and landscape?

When you add a view controller to the storyboard it comes with a view. Call that the container view. Add two views to the container view: a portrait view and a landscape view.

Set the dimension of the portrait view and the landscape view appropriately using the size inspector. Add buttons, more views, labels or whatever to the portrait and landscape views as needed for your application. Then when the orientation changes hide one view and show the other.

Up vote 5 down vote favorite 2 share g+ share fb share tw.

If you scroll down a bit at this Apple Developer Page you'll find the section "Creating an Alternate Landscape Interface". The basic approach described there is to present a different NIB file as a modal view when orientation changes. I am using the Storyboard feature, so I don't have NIBs.

How do I load a different "scene" in that case? Besides that, I am using a Tab Bar controller, I don't want to show a modal view. I just want to replace the current portrait view with a landscape view designed with interface builder and keep my tab bar.

What would be the Storyboard way to achieve the task "Creating an Alternate Landscape Interface"? Thank you. Iphone xcode interface-builder storyboard screen-orientation link|improve this question asked Jan 8 at 12:47Mr. Omsn439411 57% accept rate.

Interesting approach. Will try that. Thanks – Mr. Omsn Jan 15 at 14:31 What if you use IBOutlets, those can only be assigned to only one view.

– Paranaix Feb 13 at 8:31 @Paranaix I may not completely understand your comment. The original question poses a requirement to have different interfaces for landscape and portrait mode. If you are looking for a different layout for the same interface that is a different problem.

Maybe you should pose a completely new question. – T.J. Feb 13 at 13:42.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions