0
時,當我在我的cocos2d場景中添加一個子視圖到openGLView INIT閃爍顯示添加一個UIView作爲openGLView的子視圖顯示閃爍開幕現場
-(id) init
{
if((self=[super init])) {
_overlay = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 1024, 768)];
self.overlay.alpha = 0.6f;
[[[CCDirector sharedDirector] openGLView] addSubview:_overlay];
....
}
有誰知道如何避免?