当我尝试呈现模态视图控制器时,它按预期运行,但它以错误的方向显示,并且只沿着屏幕走一半(只显示了上半部分)。代码看起来很简单——
-(void)showAboutView {
AboutViewController *aboutViewController = [[AboutViewController alloc] init];
if (aboutViewController != NULL) {
[self presentModalViewController:aboutViewController animated:YES];
}
}
所有 shouldAutorotateToInterfaceOrientation 都设置为“landscapeRight”
我意识到我可能正在做一些非常愚蠢的事情,但我无法弄清楚它是什么......感谢任何帮助!