When I add a subview to the openGLView in my cocos2d scene init a flicker is shown
-(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];
....
}
Does anyone know how to avoid it?
Fixed with this change:
I used to have: