Storyboard 내에서 간단한 GLKViewController
을 사용하고 있습니다. 정상적으로 작동합니다.프로그래밍 방식으로 인스턴스화 된 ViewController 결과가 검은 색보기로 표시됩니다.
나는 그것의 전망이 다른보기 위의 OpenGL을 객체를 배치, 다른보기의 전면에 표시 할 때, 나는 프로그래밍 방식으로 두 번째 VC 내 GLKViewController
하고 서브 뷰로 GLKViewController´s
보기를 추가 인스턴스화 :
UIStoryboard *storyboard = [UIStoryboard storyboardWithName:@"MainStoryboard" bundle: nil];
AROpenGLVC *openGlVC = [storyboard instantiateViewControllerWithIdentifier:@"objects OpenGL Controller"];
[self.view addSubview:openGlVC.view];
불행히도, 결과 anymated openGL 개체없이 검은보기입니다.
디버거를 실행하여 모든 초기화 작업을 수행 한 것 같습니다.
- (void)glkView:(GLKView *)view drawInRect:(CGRect)rect
하지만 - (void)update
방법의 밤은라고합니다.
분명히해야 할 일이 있지만 반드시 볼 수는 없습니다. 힌트를 보내 주셔서 감사합니다.dt