내 아이폰 앱은 아이폰 시뮬레이터와 기기에서 실행되지만 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];
앱을 시작했을 때 범용 앱을 선택하셨습니까? 그렇다면 iPad보기를 구현 했습니까? – alinoz