Hi I am new to Xcode7 and swift2. I came from android dev background and in android when you declare an activity in the manifest file you can set its orientation limits for each activity (Portrait, Landscape). What is Xcode7 easiest way of setting orientation restrictions for each storyboard UIview/scene?
You can set orientation in two way.
One is, you can set orientation from Attribute inspector
And Second is, You can set it from .plist file.
Add below key in plist file:-
<key>UISupportedInterfaceOrientations</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
</array>
Alternate of .plist
Hope this will help you.
Thank you.
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.