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
장치와 시뮬레이터 모두를 관찰했다.