When you create the view you need to pass through who the parent is.
The easiest way to see this in action is in the BubbleLevel source code.
Look at the following line in the LevelViewController:
Code:
levelView = [[LevelView alloc] initWithFrame:applicationFrame viewController:self];
Here you can see that it passes the viewController "self". So now the view knows who is the parent.
Check the LevelView.h and .m files for more information on how to correctly set this up.
IMPORTANT: Do NOT add [viewController release]; to the dealloc of the view or you will crash your app.
I use "self.viewController = nil;" instead.