Xcode iPad旋转问题

时间:2011-08-28 15:23:47

标签: iphone xcode ipad rotation autorotate

我上传到appstore的应用有问题。它被拒绝了,因为它不支持“Home-Button up”和“Home-Button down”方向。刚起来。现在我尝试解决这个问题并需要你的帮助。我实际上只有一个webview和两个带按钮的工具栏。如何让它们旋转?

2 个答案:

答案 0 :(得分:1)

添加对视图控制器内所有方向的支持:

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

在iPad上,没有理由说应用程序不能通过主页按钮向下而不是主页按钮向上。

答案 1 :(得分:0)

在ViewController中:

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
    // Return YES for supported orientations
      return UIInterfaceOrientationIsPortrait(interfaceOrientation);
}