1

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.

Mateusz Piotrowski
  • 8,029
  • 10
  • 53
  • 79
user722566
  • 203
  • 1
  • 5
  • 16
  • -(BOOL)shouldAutorotateToInterfaceOrientation: (UIInterfaceOrientation)interfaceOrientation {} – user722566 Apr 29 '11 at 23:37
  • check the link below of [stack overflow][1] [1]: http://stackoverflow.com/questions/6216920/best-practice-to-support-portrait-and-landscape-views-in-a-uinavigationcontrolle/6229606#6229606 – Ajit Satarkar Aug 25 '14 at 13:10

1 Answers1

1

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

PICKme
  • 39
  • 5