I Have a Problem with my app I uploaded to the appstore. It was rejec开发者_Python百科ted because it didn't support both "Home-Button up" and "Home-Button down" orientations. Just Up. Now I try to fix that problem and need your help. I actually just have a webview and two toolbars with buttons. How can I make them rotate?
Add support for all orientations inside your view controllers:
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
return YES;
}
On the iPad it really does not make sense to say that app cannot be orientated with home button down but not with home button up.
In the ViewController:
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
// Return YES for supported orientations
return UIInterfaceOrientationIsPortrait(interfaceOrientation);
}
精彩评论