В iOS6 shouldAutorotateToInterfaceOrientation устарела. Я попытался использовать supportedInterfaceOrientations и shouldAutorotate, чтобы приложение работало правильно для авторотации, но не удалось.
этот ViewController я не хочу вращать, но он не работает.
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
    return (interfaceOrientation == UIInterfaceOrientationPortrait);
}
-(BOOL)shouldAutorotate
{
    return NO;
}
-(NSUInteger)supportedInterfaceOrientations
{
    return UIInterfaceOrientationMaskPortrait;
}
Любые идеи? Спасибо за любую помощь заранее!