iPhone orientation problems
iPhone orientation problems
- Subject: iPhone orientation problems
- From: Eric Giguere <email@hidden>
- Date: Sat, 24 Jul 2010 20:36:30 -0400
Hi all
I've read a lot of articles on the subject but still could not figure out how to solve my issue.
I have a multiview iPhone application. One of those views is a Navigation view of course controlled by a Navigation controller. The other view is a full screen image view, which is also the start screen of the application.
I have declared a custom controller, the ViewSwitcherController wich controls what view is displayed and it also contains a view, the graphic one.
So, ViewSwitcherController has graphic view.
The NavigationController has the navigator view.
Both controllers are in the same nib files (there are many issues if you want to use a navigation controller in a seperate nib file).
My problem is when I rotate my device. I've overridden the shouldAutorotateToInterfaceOrientation method and had it return YES all the time. The current view always get rotated, no matter which one is active but if I switch back to the next view after rotating, the next one, again no matter which one it is, appears on screen in the wrong orientation, even though the status bar, so I suppose the main windows, is shown in the right orientation.
How can I solve this issue? Any idea?
Everywhere, it is said that it should be handled automatically when adding the subview to the window but it doesn't seem to work, at least not with my controller layout.
thx for any help.
Eric.
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden