I have an application with 3 tabs in TabBarController. On the first tab, it’s possible enable rotation from portrait to landscape just when the user press a button on NavigationBar? The first time the user can not rotate, only when he presses a button.
I’m using SDK iOS 6.
Thanks in advance!
Then just have a
BOOL allowedToRotate;in your class header and set it to YES when you want to allow rotating. If you are on iOS 6:That should work, though I haven’t tried it…