2011-11-09 3 views
2

내 아이폰 앱은 아이폰 시뮬레이터와 기기에서 실행되지만 ipad 시뮬레이터에서는 실행되지 않습니다. 그것은 어떤 오류를 보이지는 않지만 응용 프로그램은 빈 검은 화면 만 표시됩니다 시작되지 않습니다. 아이 패드 시뮬레이터에서 실행 5 그것을 보여주는 다음과 같은 오류 "응용 프로그램은 응용 프로그램 실행의 끝에서 루트 뷰 컨트롤러가 예상된다"동안아이폰 앱이 ipad 시뮬레이터를 작동하지 않습니다

내 응용 프로그램의 didFinishLaunchingWithOptions 코드는 다음과 같이

입니다

:

rootViewController = [[RootViewController alloc] initWithNibName:@"RootViewController" bundle:nil]; 
[self.rootViewController.view setFrame:CGRectMake(0, 20, 320, 460)]; 
[self.window addSubview:self.rootViewController.view]; 

[self.window makeKeyAndVisible]; 
return YES; 

그리고 내 main.m 코드는 다음과 같습니다 :

NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; 
int retVal = UIApplicationMain(argc, argv, nil, nil); 
[pool release]; 
return retVal; 

이 가진 문제점은 무엇입니까 ???

rootViewController = [[RootViewController alloc] initWithNibName:@"RootViewController" bundle:nil]; 
이에

: 앱 대상 정보에

self.rootViewController = [[RootViewController alloc] initWithNibName:@"RootViewController" bundle:nil]; 
+0

앱을 시작했을 때 범용 앱을 선택하셨습니까? 그렇다면 iPad보기를 구현 했습니까? – alinoz

답변

0

아이폰과 ipad 시뮬레이터 및 장치 모두.

+0

변경 없음 ... IB Bcoz에서 현재 내 rootviewcontroller 콘센트가 아무 것도하지 않아도됩니다. 이유가 될 수 있습니까 ??? – itdeeps

1

이동하여 설정 "대상 장치의 가족": "아이폰"다음 잘 모두에서 작동이 변경하면 어떻게

0

확인 .... 내비게이션 컨트롤러 대리인이 IB에 연결되어 있어야합니다 (위임자> AppDelegate).

관련 문제