有没有可能创建两个Storyboard,一个是竖屏的,另一个是横屏的,并根据设备方向来访问它们? 就像这样:
这段代码无法运行。有没有其他可行的代码?
有没有可能创建两个Storyboard,一个是竖屏的,另一个是横屏的,并根据设备方向来访问它们? 就像这样:
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
if (interfaceOrientation == UIInterfaceOrientationLandscapeLeft || interfaceOrientation == UIInterfaceOrientationLandscapeRight)
{
self.storyboard = (one of the storyboards);
}
else
{
self.storyboard (the other);
}
}
这段代码无法运行。有没有其他可行的代码?