How to rotate a view with a fixed background
Hello,
I have 2 views. One is a view with a dynamic content (which is the background of my application) (let's name it backgroundView). The other is a classic view with buttons, etc. (let's call it classicView)
The default app orientation is portrait.
Now, when the device is rotated landscape, only the classicView should rotate, while the backgroundView should remain in the same position.
How can I do that? If I set shouldAutorotateToInterfaceOrientation, both of them will rotate.
Then I tried to set the two views in different view controllers, but the method doesn't work anymore. I mean, they are subviews of window, but if I set the shouldAutorotateToInterfaceOrientation in the classicViewController, it doesn't rotate anymore.
Who can solve this?
Last edited by DevSdk; 01-19-2010 at 11:13 AM.
|