Ganesh G
Ganesh G

Reputation: 2061

How to add support for Landscape mode in existing app

I have implemented an iOS application for both iPhone & iPad, supports only in Portrait mode with OS iOS 7 & above. Now I need to add support for Landscape as well, and I do not have much knowledge on Auto layout and Size Class. Do I need to create separate xib's for Landscape mode? Please share your best suggestions and thoughts.

Upvotes: 0

Views: 181

Answers (2)

Tabish Sohail
Tabish Sohail

Reputation: 1044

Follow the steps below to add support for navigation 1) In project navigator tab, select your project 2)then select general tab and in Deployment info select checkboxes for device orientation (landscape left and landscape right.) If you dnt wanna use size classes you can go with Autolayout. https://developer.apple.com/library/ios/documentation/UserExperience/Conceptual/AutolayoutPG/Introduction/Introduction.html

Upvotes: 0

abhishekkharwar
abhishekkharwar

Reputation: 3529

Please have a look into attached screenshot for how to use SizeClass for design view in Portrait and Landscape Mode.

enter image description here enter image description here enter image description here

Have a look into this image for more clarification.

enter image description here

Upvotes: 1

Related Questions