2011-03-25 3 views
2

iPad에서이 로그를 장치 플립으로 받았습니다. 모든 것이 잘 작동합니다. 이 로그를 중지하는 방법?ipad 시스템 로그 : calling -display는 아무런 영향을 미치지 않습니다.

<CAEAGLLayer: 0x630f3e0>: calling -display has no effect. 

코드 :

ViewController *viewCntrl = [[ViewController alloc] init]; 
viewCntrl.view = gEAGLView; 
[the_Window addSubview:viewCntrl.view]; 

@interface ViewController : UIViewController { 
} 

@implementation ViewController 

-(BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation 
{ 

    if(interfaceOrientation == UIDeviceOrientationLandscapeLeft || interfaceOrientation ==    UIDeviceOrientationLandscapeRight) 
     return YES; 
    else 
     return NO; 
} 

@end 

장치와 시뮬레이터 모두를 관찰했다.

답변

0

이 문제는 OpenGL 문제에서 발생합니다. 대부분 OpenGL에서 레이어에 애니메이션을 적용하는 경우이 전체 레이어를 다른 레이어 안에 중첩시키고 첫 번째 자식 인 것처럼 중요한 데이터가 없으므로 일반 레이어에 애니메이션을 적용해야합니다. 그러나 어떤 방법으로 needsDisplayForKey:을 사용하는 경우 다른 해결책이 적용될 수 있습니다. 이 대답이 효과가 없다면 gEAGLView 코드를 게시 할 수 있습니까?

관련 문제