iPhoneアプリを作っていて画面回転に対応しようとした時に特定の方向だけ対応しようと思った時に
上下方向のみって指定をしたかったのに
リファレンスを見た時左右はあるの上限の指定ってないんですよね。
でもよく見るとMarkALLって
UIInterfaceOrientationMaskPortrait | UIInterfaceOrientationMaskLandscapeLeft | UIInterfaceOrientationMaskLandscapeRight | UIInterfaceOrientationMaskPortraitUpsideDown
って書いてるじゃん。
つまり
- (NSUInteger)supportedInterfaceOrientations {
return (UIInterfaceOrientationMaskPortrait | UIInterfaceOrientationMaskPortraitUpsideDown);
}
って書くのが正解でした。