views:

85

answers:

2
-(IBAction)gameplayButtonClicked{

    GamePlayViewController *screen3 = [[GamePlayViewController alloc] initWithNibName:nil bundle:nil];
    screen3.modalTransitionStyle = UIModalTransitionStyleCrossDissolve;
    [self presentModalViewController:screen3 animated:YES];
    [screen3 release];
}
A: 

There is no leak. Ensure your project settings are set to debug.

Jordan
+1  A: 

When you call presentModalViewController:animated: the screen3 VC will be pushed onto the view hierarchy and retained there. You should call dismissModalViewControllerAnimated: when the modal VC is done which will release it from the view hierarchy.

progrmr