I have a viewcontroller in which I wanted it to be presented only in portrait, so I did the following in iOS 6:

```
-(BOOL)shouldAutorotate
{
    return NO;
}

- (NSUInteger)supportedInterfaceOrientations
{
    return UIInterfaceOrientationMaskPortrait;
}

```

however when I rotate the device, it still turns it to landscape. Any idea where else to check this? I put a break point and it hits `supportedInterfaceOrientations`, but it still rotates