0

我已经将纵向方向添加到 iPad 和正常的 .plist 中,但是它仍然没有旋转到顶部纵向按钮上:S 这是我在 firstviewcontroller.m 中的代码

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

1 回答 1

1

将它放在所有视图控制器中,可能每个 iPhone/iPad 都有一个基本控制器和一个覆盖控制器。他们每个人都必须返回 YES(或 YES/NO,具体取决于您要支持的方向)。

于 2011-04-19T06:50:19.780 回答