Reputation: 2061
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
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
Reputation: 3529
Please have a look into attached screenshot for how to use SizeClass for design view in Portrait and Landscape Mode.
Have a look into this image for more clarification.
Upvotes: 1