Hi,
** solved :-) (see example on bottom) **
could anyone give me a hint on how to force a view controller to switch back to portrait orientation after returning from a subview which was in landscape mode? It should work similar to the Photo-App. When viewing an image in fullscreen mode, the view rotates on changes of the device orientation. When going back to the thumbnail view, the thumbnail view remains in portrait orientation (including the navigation bar, tab bar and status bar), even if the image view was in landscape mode (with status bar, toolbar etc.)
I uploaded a simple example project to demonstrate the behavior
http://www.speedyshare.com/files/23428186/RotationDemo.zip
- Press the 'Push' button
- Rotate to landscape orientation
- Press the back-button (Root)
How to force the view with the Push-Button to switch back to portrait orientation (including the tabbar etc.)? Any idea?
One working solution I found is to present the rotating view controller modally http://www.speedyshare.com/files/23430391/RotationDemoSolved.zip
If someone has a better solution, please don't let me die stupid. :-)
Regards, MacTouch