タブバーコントローラーを備えたストーリーボードがあります。デバイスが回転したら、別の画面に移動します。つまり、同じレイアウトを横向きに表示するのではなく、まったく異なるものを表示します。
iOS 5では、UITabBarControllerDelegateの次のコードでこれを実現しました
- (BOOL)shouldAutorotateToInterfaceOrientation: (UIInterfaceOrientation)interfaceOrientation
{
if(interfaceOrientation == UIInterfaceOrientationLandscapeRight)
{
[self performSegueWithIdentifier: @"toGraph" sender: self];
}
return (interfaceOrientation == UIInterfaceOrientationPortrait);
}
iOS 6では、このメソッドは呼び出されなくなりました。私が見ることができるすべての方法は、ビューが回転しているときに処理しますが、デバイスが回転しているときは処理しません。
前もって感謝します。