0
didLoad에서 다음 방법을 사용하거나 iPad 시뮬레이터에서 willAppear를 사용하면 장치가 항상 가로 모드로 인식 될 때 가로 모드로 생각합니다.시작시 iPad 방향 결정
UIDeviceOrientation orientation = [[UIDevice currentDevice] orientation];
NSLog(@"orientation - %i", UIInterfaceOrientationIsPortrait(orientation));
iPhone 시뮬레이터에서 제대로 작동합니다. 기기 방향을 확인하는 또 다른 방법이 있습니까?
app.plist에서 지원되는 방향을 추가하려고했지만 여전히 시뮬레이터가 가로 모드로 생각합니까?
건배,
대단히 감사합니다. – ChrisM