我试图在我的 Open GL ES 视图上覆盖一个标签(以及将来的一个 UI 图像),但什么也看不到,知道为什么吗?用户交互和多点触控被选中。我很确定它与这个 applicationDidFinishLaunching 调用有关,但不确定它可能是什么:
- (void)applicationDidFinishLaunching:(UIApplication*)application
{
CGRect rect = [[UIScreen mainScreen] bounds];
GLViewController *theController = [[GLViewController alloc] init];
self.controller = theController;
[theController release];
GLView *glView = [[GLView alloc] initWithFrame:rect];
[window addSubview:glView];
glView.controller = controller;
glView.animationInterval = 1.0 / kRenderingFrequency;
[glView startAnimation];
[glView release];
[window makeKeyAndVisible];
}