2011-07-02 50 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; 
}