0
그래서 Cocos2D에서 OpenGL보기에 UITextView를 추가했습니다. 내 가로보기와 전체에 맞게 회전을 했습니까? 그러나 어떻게 든 전체 장면이 회전하면 textview는 회전하지 않습니다. 나는 ..Cocos2D UITextView가 GLView로 회전하지 않습니다.
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
- (void) willAnimateRotationToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation duration:(NSTimeInterval)duration
어떤 아이디어를
[[[CCDirector sharedDirector] openGLView] window].autoresizesSubviews = YES;
을 시도하고 이러한 기능을 포함하지만 여전히 머물러거야?
내가 사용하여 내 openGLView에 추가했습니다
[[[[CCDirector sharedDirector] openGLView] window] addSubview:self];
내 클래스는 UITextView에서 상속됩니다.
답장을 보내 주셔서 감사합니다. 내가 확인한이 GameConfig.h에 있습니다. #define GAME_AUTOROTATION kGameAutorotationUIViewController 그래서 이미 정의 된 것 같습니까? 자동 회전은 gl 구성 요소에 대해 작동하며 텍스트 뷰 만 오른쪽으로 회전하지 않습니다. – Sev
이 줄을 사용해보십시오 [[[CCDirector sharedDirector] openGLView] addSubview : self]; 창을 사용하지 마십시오. – PeakCoder
작동합니다! 엄청 고마워! – Sev