Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to design ui in both portrait and landscape in ios5 using storyboard

How to design ui in both portrait and landscape in interface builder in iphone or ipad (Iam using storyboard not xib..)..

Thanks in advance..

like image 240
iosLearner Avatar asked Jul 06 '13 08:07

iosLearner


1 Answers

If you want design UI using storyboard, In latest iOS version there is option of Out Layout.

Using Autolayout you can manage UI for both modes.

Hope this will help you

http://www.raywenderlich.com/20881/beginning-auto-layout-part-1-of-2

Or

Other alternate provided on

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.

Hope this will help you out.

like image 95
Kamleshwar Avatar answered Sep 19 '22 15:09

Kamleshwar