-(IBAction)gameplayButtonClicked{
GamePlayViewController *screen3 = [[GamePlayViewController alloc] initWithNibName:nil bundle:nil];
screen3.modalTransitionStyle = UIModalTransitionStyleCrossDissolve;
[self presentModalViewController:screen3 animated:YES];
[screen3 release];
}
views:
85answers:
2
+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
2010-03-04 23:28:04