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 protected])

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to