-
Notifications
You must be signed in to change notification settings - Fork 140
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rotation works in iOS 5 but not in iOS 6 #24
Comments
Any luck with this? I'm having all kinds of iOS6 rotation related oddities in a landscape app. Even though the content all appears to be displayed with the correct dimensions, there's a portion of the view that I can't interact with. In fact it appears that I can only interact with the portrait width's worth of the screen. E.g. 768 pixels. When I rotate the device 180 degrees, I can see this "dead space" flickering. I've tried everything I can think of. |
Ah-ha! Try assigning the root view controller to
Still trying to figure out why things still don't work on iOS 5 when this is launched from a View Controller in a Nav Controller in a Tab Bar Controller though. (Three20 has the same problem on iOS 5. iOS 6 is fine. Can't move over to Nimbus yet, but eventually.) |
Already doing that, unfortunately it had no effect. I also just realised this issue isn't for Three20 (I followed it from the ticket you referenced) - which is what I am using. In the meantime, I've reintegrated the iOS5 SDK with my Xcode and I'm building with that instead. Not ideal, but I've spent so much time trying to work out what's going on.. Also moving to Nimbus in an imminent refactor. Can't wait ;-) |
Wow, it sounds like we're in the same boat here! No effect, really??? Hmm. That's the only thing I changed in the Enormego code base, and that's what solved it for me. Of course, they aren't using a tab bar controller either. I currently subclass it and add stuff like this:
I've also added a symbolic breakpoint (sometimes enabled) for:
What I notice is that |
I had exactly the same problem. My landscape only app had an area that did not accept touch and showed a black bar artifact when rotating. All this is caused by the UIWindow having the wrong dimensions. In my case I set the plist to landscape only and my UIWindow frame was set according to the statusBarOrientation landscape orientation. Make sure that the UIWindow is set with portrait orientation and all will work fine. Needless to say, you also need the setRootViewController tweak. |
Tracing through the code now, but I suspect this has to do with new rotation logic in IOS 6 ... ?
I'm crossing my fingers regarding how this will rotate when using a Tab Bar Controller. Three20's photo viewer suffers from a won't-rotate affliction in iOS 6 as well. I've tried a number of things to resolve it, including some along the lines of the comments in issue #16, but none of them have helped so far.
The text was updated successfully, but these errors were encountered: