2011-01-11 2 views
0

가로 전용 응용 프로그램을 만들고 있습니다. 따라서 내 루트 UIViewController 가로 (모든 xib 파일을 가로 방향으로 설정되어 있습니다).루트 UIViewController orientation landscape, subviews에서 이상한 것을 만집니다.

// Override to allow orientations other than the default portrait orientation. 
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation { 
// Return YES for supported orientations 
return (interfaceOrientation == UIInterfaceOrientationLandscapeRight); 
} 

하위보기 중 하나에서 버튼을 터치하려고하면 터치가 수신되지 않습니다. 위에 표시된 재정의 값을 제거하면 단추가 터치되지만 하위 뷰는 세로 방향으로 표시됩니다.

이 문제를 해결하려면 어떻게해야합니까?

감사 & 안부,

다윗과는 별도로

답변

0

, 당신은 당신의 Info.plist 파일에 지원되는 방향을 설정해야합니다.

키가 "UISupportedInterfaceOrientations"인 "지원되는 인터페이스 방향"아래에 있습니다. 목록에서 세로 방향을 제거하십시오.