我不知道我是否有ü正確與否。直到我得到的是,你有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