2つのストーリーボード、1つのポートレイト、1つの風景を作成し、デバイスの向きに応じてアクセスする方法はありますか?肖像画と風景のための2つのストーリーボード
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
if (interfaceOrientation == UIInterfaceOrientationLandscapeLeft || interfaceOrientation == UIInterfaceOrientationLandscapeRight)
{
self.storyboard = (one of the storyboards);
}
else
{
self.storyboard (the other);
}
}
このコードは機能しません。 ??????????????
http://stackoverflow.com/questions/7803524/storyboard-orientation-support-for-xcode-4-2 – JAHelia