Xcode – How to make an iOS app support landscape orientation in XCode

screen-orientationxcode

How to make an iOS app support landscape orientation?

How do you make it support both landscape and portrait, where you can just press a button to activate it.

Best Solution

for any new people reading this old post just go to main.storyboard->click on the view controller click on simulated metrics (the fourth icon that pops up, looks kind of like a pentagon belt buckle) then orientation->Landscape this is for Xcode 5