shouldAutorotateToInterfaceOrientation gets called but app interface does not reorients (only the status bar reorients)

StackOverflow https://stackoverflow.com/questions/9463834

Question

I am trying to build an app that only works for landscape device orientations on iOS devices. That means my shouldAutorotateToInterfaceOrientation returns true for only landscape device orientations. However at some points of time, I need to switch to portrait device orientation for which I use setStatusBarOrientation API.

After holding the device in any landscape orientation and setting the interface orientation to default/upside down by using setStausBarOrientation API, and just tilting the device slightly in the held orientation orientation only, the status bar rotates but the interface does not rotates. shouldAutorotateToInterfaceOrientation does get called and returns true but still interface does not reorient. Also, problem gets solved if I rotate the device in opposite orientation. I am not sure what I am doing wrong.

Was it helpful?

Solution

Apple have accepted this as a bug in their SDK and they might fix the issue in the next release.

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