shouldAutorotateToInterfaceOrientation isn't getting called
Posted
by morgancodes
on Stack Overflow
See other posts from Stack Overflow
or by morgancodes
Published on 2010-03-26T19:48:52Z
Indexed on
2010/03/26
19:53 UTC
Read the original article
Hit count: 508
iphone
|autorotate
What sort of conditions might prevent my UIViewController's shouldAutorotateToInterfaceOrientation method from being called?
I've resorted to using NSNotificationCenter to listen for UIDeviceOrientationDidChangeNotification events, but would love to get the autoRotation behavior working properly.
A couple shots in the dark about what's going wrong:
Maybe I'm not creating my view controller correctly? Maybe it needs to be inserted in the responder chain and somthething I'm doing is preventing that from happening normally? This seems unlikely to me since my view controller is recieving touch events.
- Maybe the fact that the view contained by my controller relies on OpenGL has something to do with shouldAutorotateToInterfaceOrientation not getting called?
Do either of these sound remotely possible as being responsible? Any other ideas of things to look at?
© Stack Overflow or respective owner