いつの間にかshouldAutorotateToInterfaceOrientationがdeprecatedされていたでござる


iOS6から、

-(BOOL)shouldAutorotate

で自動ビュー回転するかしないかを返し、

-(NSUInteger)supportedInterfaceOrientations

でサポートするUIInterfaceOrientationのフラグの組み合わせを返すようになったらしい

UIInterfaceOrientationPortrait
UIInterfaceOrientationLandscapeLeft
UIInterfaceOrientationLandscapeRight
UIInterfaceOrientationPortraitUpsideDown
UIInterfaceOrientationMaskAll