Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

nashyo

macrumors 6502
Original poster
Oct 1, 2010
299
0
Bristol
I previously had my app successfully rotating a controller that had a UIimage subview.

I set the following to yes.

Code:
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
    return YES;
}

This was all that was required to get rotation to work, in IOS5.

Since adding a tab bar controller, the rotation has stopped.

In storyboard, I have set attributes so that the tab bar does not display when the controller is pushed to ImageViewController. I have also enabled the full screen attribute. But still no rotation.

What could have gone wrong here?
 
Last edited:

nashyo

macrumors 6502
Original poster
Oct 1, 2010
299
0
Bristol
Got it

Found the answer.

If you have a tab bar, you need to set auto rotate to on in the view controllers of both tabs.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.