简体   繁体   中英

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.

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.

在此处输入图片说明

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM