In your Info.plist, add a new dictionary named UISupportedInterfaceOrientations and add the following items:
Portrait: UIInterfaceOrientationPortrait
Landscape Left: UIInterfaceOrientationLandscapeLeft (Home Button is oriented left)
Landscape Right: UIInterfaceOrientationLandscapeRight (Home Button is oriented right)
Upside Down: UIInterfaceOrientationPortraitUpsideDown (Home Button is at top, device is held sideways)
Topic:
Community
SubTopic:
Swift Student Challenge
Tags: