When I load my UITableView through the OpenGLView of the director I can't register the touches on my table (the function - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath never gets called when the table is touched)
If I load the view directly in the window then the view works as expected.... I'm not sure why it won't work with the Director's view (the cancel button in the toolbar works fine...)
Here's the code I use to load the view:
[[Director sharedDirector] pause];
[UIView beginAnimations:nil context:NULL];
[UIView setAnimationDuration:.5];
[UIView setAnimationTransition:UIViewAnimationTransitionCurlUp forView:[[Director sharedDirector] openGLView] cache:YES];
[[[Director sharedDirector] openGLView] addSubview:controller.view];
[UIView commitAnimations];
But it works fine if I load it like this:
FileViewController *file = [[FileViewController alloc] init];
[window addSubview:file.view];
[window makeKeyAndVisible];