【发布时间】:2012-03-06 19:30:43
【问题描述】:
是否有任何可能的方法来创建两个故事板,一个纵向和一个横向,然后根据设备方向访问它们?类似:
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
if (interfaceOrientation == UIInterfaceOrientationLandscapeLeft || interfaceOrientation == UIInterfaceOrientationLandscapeRight)
{
self.storyboard = (one of the storyboards);
}
else
{
self.storyboard (the other);
}
}
此代码不起作用。有什么代码可以用吗???
【问题讨论】:
标签: ios xcode storyboard