우리는 오디오 잭 (또는 iPhone7 이상의 번개 포트)에 연결된 액세서리를 사용하는 앱을 보유하고 있습니다. 특정 방향으로 실행해야합니다. iOS 기기.iPhone X에서 인터페이스 방향을 세로로 거꾸로 회전시킬 수 없음
현재 iPhoneX 시뮬레이터를 제외하고 모든 iPhone 용 시뮬레이터 또는 실제 장치에서 장치 방향을 설정하는 데 문제가 없습니다. 설정 방향에 대한
현재 코드 :
- (BOOL)shouldAutorotate {
return YES;
}
- (UIInterfaceOrientationMask)supportedInterfaceOrientations
{
//device checks omitted
return UIInterfaceOrientationMaskPortraitUpsideDown;
}
Target settings with orientations enabled
스택 추적 : 이것은 아이폰 5, iPhone6, iPhone6 +, iPhone7 및 iPhone7 + 장치 및 iPhone8 시뮬레이터에 노력하고 있습니다
TF uncaught exception reason : Supported orientations has no common orientation with the application, and [RootNavigationController shouldAutorotate] is returning YES
2017-10-05 09:35:02.692945+0200 [65045:74145368] *** Terminating app due to uncaught exception 'UIApplicationInvalidInterfaceOrientation', reason: 'Supported orientations has no common orientation with the application, and [RootNavigationController shouldAutorotate] is returning YES'
. iPhone7이 현재 iOS11을 실행하고 있어도 iOS11 문제는 아닙니다. 내가 현재 문제를 겪고있는 유일한 장치는 iPhoneX 시뮬레이터입니다.
iOS 11.2에서 shouldAutorotate는 더 이상 호출되지 않습니다. 모든 이전 로테이션 코드는 더 이상 사용되지 않는 것으로 보입니다. "iOS 8부터는 UIViewController 설명서에서 모든 회전 관련 메서드가 사용되지 않습니다. iPhone X의 회전을 막으려 고 노력하는 데 너무 어려움을 겪고 있습니다. – RickJansen