가로 방향으로 올바른 방향을 사용하는 응용 프로그램이 있습니다. 뷰 컨트롤러에서 내가 사용가로 방향 지원에만 해당
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
// Return YES for supported orientations
return (interfaceOrientation == UIInterfaceOrientationLandscapeRight);
}
그러나, 세로 방향에 대한 사용자 잠금 아이폰 또는 아이 패드는 화면이 세로가 아닌 가로로 표시됩니다. 또한 info.plist 파일에서 나는 의 가로 방향 방향을 으로 정의했습니다.
가로 방향에는 왼쪽과 오른쪽의 두 가지 유형이 있습니다. –
실제로 코드를 변경하여 UIInterfaceOrientationLandscape (interfaceOrientation)을 반환합니다. – jer