2011-04-19 66 views
0

我已經將兩個縱向方向添加到了.plist和普通的iPad,但它仍然沒有輪流到頂部縱向按鈕上:這裏是我的代碼在firstviewcontroller.m不能旋轉到兩個縱向方向

// Override to allow orientations other than the default portrait orientation. 
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation { 
    return YES; 
} 

回答

1

把它放在你所有的視圖控制器中,可能你有一個基礎和每個iPhone/iPad覆蓋一個。他們每個人都必須返回YES(或YES/NO,具體取決於您希望支持的方向)。

相關問題