Very Intermittent Orientation on Device & Simulator
Posted
by Michael Waterfall
on Stack Overflow
See other posts from Stack Overflow
or by Michael Waterfall
Published on 2010-01-22T10:12:43Z
Indexed on
2010/03/30
8:23 UTC
Read the original article
Hit count: 391
I've noticed that I'm getting very intermittent orientation on my device & the simulator.
I have a modal view controller that I present, and that is the only thing in my app which supports rotation.
If I launch the app in portrait without moving the device, open the modal VC and then rotate the device, it usually works. However sometimes if I open the app holding the device in landscape, then rotate to portrait, launch the VC and then rotate the device, no rotation occurs. It seems very intermittent. Sometimes if I launch the app in portrait mode and then open the VC and rotate the device, nothing happens, and until I quit and relaunch it no orientation occurs in the app.
It's strange because 50% of the time it works! Whenever I launch it through Xcode and set breakpoints in shouldAutorotateToInterfaceOrientation it always works!
Anyone ever had this or know what's going on?
© Stack Overflow or respective owner