iOS 8与iOS 7 Autorotation

Dee*_*rma 6 uiviewcontroller uiwindow auto-rotation ios7.1 ios8

这是一个简单的单视图控制器应用程序:

    - (void)viewDidLoad
    {
      [super viewDidLoad];
// Do any additional setup after loading the view, typically from a nib.

      self.view.backgroundColor = [UIColor greenColor];
     }


    - (BOOL)shouldAutorotate
    {
       return YES;
    }

    - (NSUInteger)supportedInterfaceOrientations
   {
        return UIInterfaceOrientationMaskLandscapeRight;
   }
Run Code Online (Sandbox Code Playgroud)

iOS 8中的输出是如此不同.

iOS 8输出

iOS 7输出

这与iOS 8与iOS 7的UIWindow界限有什么关系.我如何获得iOS 7的行为?

Dee*_*rma 0

这似乎是 Xcode 6 或 iOS 8 中的错误。从 xib 切换到 Storyboard 后,问题消失了。