iPhone screen rotates at random !

Posted by Baldoph on Stack Overflow See other posts from Stack Overflow or by Baldoph
Published on 2010-03-14T10:24:17Z Indexed on 2010/03/14 10:25 UTC
Read the original article Hit count: 234

I use a tabBar Controller as root controller. It has 4 tabs and each of its ViewControllers has

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

as long as the tabBarController itself. But when I rotate the device (real or simulator), the screen turns at random! If it doesn't turn when I open the application it would have the same behavior until I quit the app. I tried to add the 4 viewControllers one by one in IB to see if one was problematic, but I obtained the same issue. It only always works when there is no tabs at all!

Please tell me if you have any ideas. Thanks!

© Stack Overflow or respective owner

Related posts about iphone

Related posts about rotation