【问题标题】:How to do orientations in iphone and ipad for ios6?如何在 iphone 和 ipad for ios6 中进行定位?
【发布时间】:2013-04-30 12:49:03
【问题描述】:

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

我在最新版本的方向上遇到问题?请帮帮我?

【问题讨论】:

标签: ios6.1


【解决方案1】:

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

     - (BOOL) shouldAutorotate
     {
     return YES;
      }

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

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

【讨论】:

    猜你喜欢
    • 2013-12-28
    • 1970-01-01
    • 2012-04-16
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-08-25
    • 2023-03-05
    相关资源
    最近更新 更多