-1

如何在 iphone 和 ipad for ios 6 中进行定位?以前的版本显示 shouldrotateinterfaceorientation 但最新版本没有显示?

我面临最新版本的方向问题?请帮帮我?

4

1 回答 1

0

试试这个方法。在 iOS 6 中,我们开始使用遮罩。

     - (BOOL) shouldAutorotate
     {
     return YES;
      }

    -(NSUInteger)supportedInterfaceOrientations
      {
      return    UIInterfaceOrientationMaskLandscapeRight | UIInterfaceOrientationMaskLandscapeLeft   | UIInterfaceOrientationMaskPortrait | UIInterfaceOrientationMaskPortraitUpsideDown;
      }

您可以从我在这里放置的内容中选择您想要的旋转,并删除您不想要的蒙版。祝你好运。

于 2013-05-14T20:34:57.780 回答