我上传到应用商店的应用出现问题。它被拒绝了,因为它不支持"Home-Button up“和"Home-Button down”方向。往上就好。现在我试着解决这个问题,需要你的帮助。实际上,我只有一个网页视图和两个带按钮的工具栏。我怎么才能让它们旋转?
发布于 2011-08-28 23:33:07
在视图控制器中添加对所有方向的支持:
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
return YES;
}在iPad上,说应用程序不能按下主页按钮而不能打开主页按钮,这真的是没有意义的。
发布于 2011-08-28 23:33:01
在ViewController中:
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
// Return YES for supported orientations
return UIInterfaceOrientationIsPortrait(interfaceOrientation);
}https://stackoverflow.com/questions/7221831
复制相似问题