开发者

Xcode iPad Rotation Problem

开发者 https://www.devze.com 2023-03-31 13:30 出处:网络
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 t

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);
}
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号