2011-10-17 50 views
-1

我已經在plist中設置了它應該只支持縱向模式,但是當我旋轉它時,視圖會改變。它對我來說以前,但不是現在...iPhone支持Xcode的方向

請幫助,這是讓我瘋了!

+0

plist說什麼,你有什麼試過?需要更多信息。 –

+0

支持的接口方向: 項目0肖像(底部主頁按鈕) – vburojevic

回答

0

韋德蘭Burojević,

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation { 
return (interfaceOrientation == UIInterfaceOrientationPortrait) 

}

上面的代碼只支持肖像模式..

0

您可以在此編寫代碼。

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation { 
return (interfaceOrientation == UIInterfaceOrientationPortrait) 
}