Question

I want to initially launch one of the View controllers in JUST landscape mode, while the other views and the whole app can work in both portrait and landscape. How can I do it in iOS 7? Thank you.

Was it helpful?

Solution

So your whole app may supports all orientations but one view controller needs to be landscape only.

You can easily stop your landscape view controller to rotate from landscape to portrait but when the app is in portrait already then it is difficult to force the deivce to rotate as this contradicts the iPhone manufacturers priciple.

In fact, it is not really difficult when you know the trick. See my answer to this similar question. Force controllers to Change their orientation in Either Portrait or Landscape

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top