2009-09-04 2 views
0

루트보기는 UIImage보기이며 하위보기가 있으며 하위보기가 있습니다. 프리젠 테이션에서 내 루트보기가 열립니다. 프로젝트의 .plist에 프로젝트 속성을 설정하고 applicationDidFinishLaunching에 application.statusBarOreintation을 통합하여 작동하는지 확인했습니다.UIImageView 하위 뷰의 자동 회전

하지만 내 모든 하위보기가 세로로 표시됩니다. 내 하위보기에서이를 어떻게 변경합니까?

감사

답변

1

당신이의 ViewController이 있습니까 // : ? shouldAutorotateToInterfaceOrientation이 반환하는 것은 무엇입니까?

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

viewcontroller가 없으면로드 한 각보기를 회전시키기 위해 변환을 적용해야합니다.

+0

고맙습니다. – Spanky

관련 문제