2010-03-03 81 views
1
-(IBAction)gameplayButtonClicked{ 

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

我沒有看到任何泄漏。 – kennytm 2010-03-03 19:30:07

+1

還未下雨。 – 2010-03-03 19:32:06

+0

有沒有泄漏,沒有需要的水管工 – 2010-03-03 19:33:34

回答

1

當您調用presentModalViewController時:animated:screen3 VC將被推入視圖層次並保留在那裏。模態VC完成後,您應該致電dismissModalViewControllerAnimated:,它將從視圖層次結構中釋放它。

0

沒有泄漏。確保您的項目設置被設置爲調試。