2012-03-21 3 views
0

가로 모드에서 기본으로 xcode 3.2.6을 사용하여 범용 앱을 만들려면 어떻게해야합니까? 각보기에 대해 seprate .xib 파일이 필요합니다.이 코드를 사용해야합니다. - (BOOL) shouldAutorotateToInterfaceOrientation : (UIInterfaceOrientation) interfaceOrientation {// 지원되는 방향에 대해 YES를 반환합니다. return (interfaceOrientation == UIInterfaceOrientationLandscape); } 당신의 plist에서범용 xcode 3.2.6 가로 모드 (기본값)

답변

0

이 샘플 코드를 사용하고 뷰 기반으로 만들기 위해 Navigation b를 숨 깁니다. b 위대한의 RootViewController_Phone.h과 @iphonemaclover BenellingsonPost

0

, 당신은 supported interface orientations 변경해야하는 두 항목 :

항목 0 Landscape (right home button)

항목 1 Landscape (left home button)

그리고 각 뷰 컨트롤러에서 사용

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation 
{ 
    // Return YES for supported orientations 
    return (UIInterfaceOrientationIsLandscape(interfaceOrientation)); 
} 
+1

RootViewController_Pad 이 코드 self.navigationController.navigationBarHidden = YES; 를 사용하여 AR! – iNoob