我不知道我是否有ü正确与否。直到我得到的是,你有2个viewControllers,第一个viewController只支持景观而第二个viewController支持所有的方向。但是你在维护这个问题上有问题。检查你是否已经在你的代码中实现了这一点,如果你仍然发现任何问题,做回恢复,如果它解决善意接受答案并投票了): -
1)你的第一个viewController应该有这样的: - //为iOS 6
-(BOOL)shouldAutorotate{
return YES;
}
-(NSUInteger)supportedInterfaceOrientations{
return UIInterfaceOrientationMaskLandscape;
}
为< iOS 6的
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
return (interfaceOrientation == UIInterfaceOrientationLandscapeRight || interfaceOrientation == UIInterfaceOrientationLandscapeLeft);
}
2)你的第二个的viewController应该有这样的: - 为iOS 6
-(BOOL)shouldAutorotate{
return YES;
}
-(NSUInteger)supportedInterfaceOrientations{
return UIInterfaceOrientationMaskPortrait;
}
为< iOS6的
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
return (interfaceOrientation == UIInterfaceOrientationPortrait);
}
来源
2013-05-21 11:57:18
mAc
+1,希望它可以帮助你在你的声誉。 :) – mAc