2011-03-24 2 views
0

내 애플리케이션을 가로 방향으로 영구적으로 고칠 수 있습니까?LandScape로 수정

+0

[가로 모드에서 잠금 응용 프로그램을 iPad]의 중복 가능성 (http://stackoverflow.com/questions/11888612/lock-ipad-app-in-landscape-mode) – finnw

답변

4

응용 프로그램의 Info.plist 파일에 UIInterfaceOrientation 키를 추가하고 해당 값을 가로 모드로 설정하십시오. 가로 방향의 경우이 키의 값 을 UIInterfaceOrientationLandscapeLeft 또는 UIInterfaceOrientationLandscapeRight로 설정할 수 있습니다. 방법 및 반환 YES 만 세로 방향에 대한 원하는 가로 방향 및 NO 에 대한 :

은 뷰 컨트롤러의 shouldAutorotateToInterfaceOrientation을 무시

.

은 자세한 내용 Landscape Mode ONLY for iPhone or iPad를 참조하십시오

+0

고마워하지만 이미 벌써 .. :) – rptwsthi

+0

그럼 뭘 더 원하니? – visakh7

+0

UIInterfaceOrientation은 선택 사항이 아니 었습니다. 초기 방향 이었지만 info.plist가 도움이되었습니다. – rptwsthi