<span class=""“Apple-style-span”"" style=""“font-family:arial;line-height:normal;”""><span class=""“Apple-style-span”"" style=""“font-size:medium;”"">我新手,碰到一个棘手的问题,希望有人可以帮助我 <div style=""“font-family:arial;line-height:normal;”""><span class=""“Apple-style-span”"" style=""“font-size:medium;”"">我在cocos2d 加了一个 UIKit 控件.
glView = EAGLView viewWithFrame:window bounds]
pixelFormat:kEAGLColorFormatRGBA8
depthFormat:0 ];
glView setMultipleTouchEnabled:YES];
glView.opaque = NO;
glClearColor(0.0f, 0.0f, 0.0f, 0.0f);
glClear(GL_COLOR_BUFFER_BIT);
overView = UIView alloc]initWithFrame:UIScreen mainScreen]bounds]];
overView.opaque = YES;
overView.backgroundColor = UIColor clearColor];
overView addSubview:glView];
viewController setView:overView];
window addSubview: viewController.view];