I'm working on an iPhone app that supports portrait only. But while seeing some pages it would be great to rotate to better visualize it.
The problem is when you go back to the previous page, the interface orientation remains on landscape until you manually rotate your device.
It's hard to explain, but what I want to do is something similar to the FaceBook app. While looking at pictures you can rotate the device. When you tap "Done" and go back to the previous page, the orientation changes to portrait, even thought the device still is on landscape position. It forces the orientation change.
Anyone has any idea how to do this?