2012-12-03 39 views
0

在我的分割視圖應用程序中,當應用程序設置中不存儲共享密鑰時,我提供一個登錄對話框。這要求應用程序在該對話框出現時停止旋轉。但是隨着最近的iOS 6.0.1這種方法不會被調用釋放如何在分割視圖中控制界面方向

-(BOOL) shouldAutorotate 
{ 
    return ![SynchronizationHandler displaysLoginWindow]; 
} 

:我通過重寫的DetailView控制器shouldAutorotate方法是這樣實現了這一點。我已經做了一些搜索,但是我沒有找到關於這個具體案例的任何信息。

回答

0

的iOS 6.0.1似乎使用shouldAutorotate方法僅適用於窗口RootViewController的。

1

使用- (void)willRotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation duration:(NSTimeInterval)duration {}代替

相關問題