1

I running my code without any change in Xcode9.2 and Xcode9.3. Apparently, the device orientation perform incorrectly in Xcode9.3. SupportedInterfaceOrientations was called but the device still rotate to portrait. Anyone can help?

- (BOOL)shouldAutorotate
{
    return YES;
}

- (UIInterfaceOrientationMask)supportedInterfaceOrientations
{
    return UIInterfaceOrientationMaskLandscape;
}
yonlau
  • 113
  • 2
  • 8

1 Answers1

0

Check ViewControllers hierarchy. Maybe you have some parent or child view controller who is accepting different rotation modes.