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