2011-07-02 73 views
0

HI在設備方向iPhone:設備的方向問題

enter image description here

屏幕1

現在

在接下來按一下按鈕,它會顯示屏幕2我的iPhone應用程序,我面臨的問題是罰款

enter image description here 屏幕2

現在點擊回來時,I C一回到原來的畫面則無法正確顯示

enter image description here

可能是什麼問題呢? 我該如何解決它?

+2

見[這裏](http://stackoverflow.com/questions/5361799/rotate-to-portrait-orientation-when -back-button-pressed) –

+0

你最近怎麼做導航?你在使用導航控制器嗎?或者你是否有任何機會手動進行此操作? –

回答

0

視圖控制器負責認爲,有廣場和食品領域應該有方法:

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation { 
    return YES; 
}