2011-08-26 2 views
0

LandscapeLeft 모드에서 iPad 응용 프로그램을 만들고 LandscapeLeft 모드에 따라 UI를 설정했습니다. 하지만 내 응용 프로그램을 실행하면 세로 모드로 UI가 표시됩니다. 나는 그 문제를 알아낼 수 없다.iPad의 LandscapeLeft 모드에서의 UI 문제

회신 해 주시기 바랍니다 ..... 사전에

감사합니다 .....

+0

안녕하세요 Aarti !!! 나는 또한 새로운 아이폰. 직접 Sk에게 질문하고 신속하게 답변을 얻을 수 있도록 Skype Id 또는 이메일을 보내 주시겠습니까? : P – mAc

+0

당신은 나를 skype에 추가 할 수 있습니다 : - mAc.0701 – mAc

답변

0

응용 프로그램 위임 파일에 아래의 코드를 작성합니다.

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation { 

    return (interfaceOrientation == UIInterfaceOrientationLandscapeLeft || interfaceOrientation == UIInterfaceOrientationLandscapeRight) 
} 
+0

hiii, ur reply ...에 대한 thnx ... 그러나 mainWindow.xib 파일에서 NavigationController outlet을 제거하면 .... 완벽한 UI를 보여주는 응용 프로그램 다시 내가 PortraitMode UI가 나타나는 콘센트를 설정 ... – Aarti

+0

그럼 모든 UIViewController 위의 코드를 복사 - 붙여 넣기해야합니다. 또는 info.plist 파일을 편집 할 수 있습니다. 이 필드에는 "지원되는 인터페이스 방향"이라는 네 가지 방향이 있으며 두 개의 세로 방향이 제거됩니다. –

1

모든 응용 프로그램은 항상에만 가로 모드에서 세로 mode.To 출시에 시작 당신이보기에 따라

또는

컨트롤러의 shouldAutorotate 방법은 다음과 같은 추가 지원 방향 배열을 파일의 Info.plist 변경으로 이동 코드

if (interfaceOrientation == UIInterfaceOrientationLandscapeLeft || interfaceOrientation == UIInterfaceOrientationLandscapeRight) { 
    return YES; 
} 

return NO;