App Store にピアノ アプリがあります。ランドスケープモードで動作します。
iOS 7 が IB のランドスケープ設定を無視しているように見える
アプリは、iOS 6 以下の横向きで期待どおりに動作します。iOS 7 では縦向きで表示されます。設定と関連コードは次のとおりです。
//iOS 6+
- (BOOL)shouldAutorotate
{
return YES;
}
//iOS 6+
- (NSUInteger)supportedInterfaceOrientations
{
return (UIInterfaceOrientationMaskLandscapeLeft | UIInterfaceOrientationMaskLandscapeRight);
}
//iOS 5.1.1-
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
return (interfaceOrientation == UIInterfaceOrientationLandscapeLeft || interfaceOrientation == UIInterfaceOrientationLandscapeRight);
}