ipad系统日志:调用-display无效

时间:2011-03-25 07:26:14

标签: ipad

我在iPad上登录了设备翻页。一切正常。如何停止此日志?

 <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

在设备和模拟器中都观察到。

1 个答案:

答案 0 :(得分:0)

从openGL问题发生此问题。很可能你是在openGL中设置一个图层的动画,你需要将整个图层嵌套在另一个图层中,并为该普通图层设置动画,因为它不会有任何敏感数据,因为它是第一个子图层。但是,如果您在某些方法中使用needsDisplayForKey:,则可能会应用不同的解决方案。 如果这个答案没有用,你可以发布gEAGLView的代码吗?