2011-02-15 83 views

回答

1

@renuga我認爲你需要在你的視圖控制器中實現這個方法。

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation 
{ 
    if(toInterfaceOrientation == UIInterfaceOrientationLandscapeRight) 
     return YES; 
    if(toInterfaceOrientation == UIInterfaceOrientationPortrait) 
     return YES; 
    return NO; 
} 

去IB,然後點擊下面的箭頭。

enter image description here

,有您需要調整您的標籤欄的位置

+0

@robin:非常感謝您的快速響應。上面的代碼根據方向旋轉狀態欄(僅)。它不是旋轉我的意思(它可能是導航欄或工具欄)的標題。 – kanmani 2011-02-15 08:05:48